Kaydet (Commit) ec5f8eb8 authored tarafından Ethan Furman's avatar Ethan Furman

Issue22506: remove name & value from __dir__ as they now show up automatically

üst b9d0199c
......@@ -470,8 +470,7 @@ class Enum(metaclass=EnumMeta):
for m in cls.__dict__
if m[0] != '_'
]
return (['__class__', '__doc__', '__module__', 'name', 'value'] +
added_behavior)
return (['__class__', '__doc__', '__module__'] + added_behavior)
def __format__(self, format_spec):
# mixed-in Enums should use the mixed-in type's __format__, otherwise
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment