Skip to content

Emit error for name mismatch when defining Enum using functional syntax #7025

@erictraut

Description

@erictraut

The following should generate an error for consistency with TypeVar and other named entities created with a functional syntax.

  WrongName = Enum('Color', 'RED GREEN BLUE')  # Type checker error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions