Skip to content

Conversation

@an-swe
Copy link

@an-swe an-swe commented Nov 5, 2025

Add PEP 561 compliant type stub files to enable static type checkers (Pylance, Pyright, mypy) to resolve dynamically created enums.

The sc2.data module creates enums at runtime using enum.Enum() with protobuf descriptors, which are invisible to static analysis tools.

Add PEP 561 compliant type stub files to enable static type checkers
(Pylance, Pyright, mypy) to resolve dynamically created enums.

The sc2.data module creates enums at runtime using enum.Enum() with
protobuf descriptors, which are invisible to static analysis tools.
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