blob: 5e83425112ff6aa34c7261909a34ece8fc1fc290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"""Test for a regression with Enums not being recognized when imported with an alias.
Reported in https://github.com/PyCQA/pylint/issues/5776
"""
from enum import Enum as PyEnum
class MyEnum(PyEnum):
"""My enum"""
ENUM_KEY = "enum_value"
print(MyEnum.ENUM_KEY.value)
|