Skip to content

fix: re-export statsig submodule and complete __all__#34

Open
bendrucker wants to merge 1 commit intostatsig-io:mainfrom
bendrucker:fix-typed-exports
Open

fix: re-export statsig submodule and complete __all__#34
bendrucker wants to merge 1 commit intostatsig-io:mainfrom
bendrucker:fix-typed-exports

Conversation

@bendrucker
Copy link

The statsig package marks itself as typed (py.typed) but doesn't properly re-export its public API from __init__.py. Strict type checkers like ty report unresolved-import for from statsig import statsig because the submodule is never imported in __init__.py's namespace.

Changes

  • Add from . import statsig as statsig to explicitly re-export the statsig submodule (the as statsig form signals an intentional re-export per PEP 484)
  • Add "statsig" and "StreamDecompressor" to __all__ (StreamDecompressor was already imported but missing from the list)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant