Skip to content

Enum member annotations mask subclass in type annotation resolution #47

@PikalaxALT

Description

@PikalaxALT

The way enum stubs are defined causes their values to appear to PyCharm as their annotated type rather than as instances of their class. This causes PyCharm to warn that, for example, the per= argument to commands.MaxConcurrency.__init__ is an int rather than the expected BucketType.

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions