Skip to content

StrEnum and IntEnum values should not be subtypes of Literal[<str>] or Literal[<int>] #10552

@erictraut

Description

@erictraut

Pyright 1.1.375 included a change for #8641 that was incorrect. This change should be reverted and alternative solutions for the original bug explored.

See this thread in the Python typing forum for Jelle's explanation for why pyright's current behavior is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    addressed in next versionIssue is fixed and will appear in next published versionbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions