-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't workingspec compliance
Description
This comes from a recently-filed mypy issue: python/mypy#16830.
from enum import Enum
class TrafficLight(Enum):
RED = 1
GREEN = 2
YELLOW = 3
AMBER = YELLOW # Alias for YELLOW
reveal_type(TrafficLight.AMBER) # Should be Literal[TrafficLight.YELLOW]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't workingspec compliance