-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
from enum import IntEnum
Color = IntEnum('Color', 'red green blue')
Color['green']
...yields:
test.py:3: error: Value of type "Type[Color]" is not indexable
This example is more or less straight out of the enum docs -- my expectation is that it should not be a type error.
Mypy version 025e3de
aalvrz and timoniq