Issue22506: remove name & value from __dir__ as they now show up automatically
This commit is contained in:
parent
b9d0199c07
commit
ec5f8eb85f
|
@ -470,8 +470,7 @@ class Enum(metaclass=EnumMeta):
|
||||||
for m in cls.__dict__
|
for m in cls.__dict__
|
||||||
if m[0] != '_'
|
if m[0] != '_'
|
||||||
]
|
]
|
||||||
return (['__class__', '__doc__', '__module__', 'name', 'value'] +
|
return (['__class__', '__doc__', '__module__'] + added_behavior)
|
||||||
added_behavior)
|
|
||||||
|
|
||||||
def __format__(self, format_spec):
|
def __format__(self, format_spec):
|
||||||
# mixed-in Enums should use the mixed-in type's __format__, otherwise
|
# mixed-in Enums should use the mixed-in type's __format__, otherwise
|
||||||
|
|
Loading…
Reference in New Issue