Skip to content

Commit e3ca5b0

Browse files
committed
Issue22506: remove name & value from __dir__ as they now show up automatically
1 parent d382099 commit e3ca5b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/enum.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,7 @@ def __dir__(self):
470470
for m in cls.__dict__
471471
if m[0] != '_'
472472
]
473-
return (['__class__', '__doc__', '__module__', 'name', 'value'] +
474-
added_behavior)
473+
return (['__class__', '__doc__', '__module__'] + added_behavior)
475474

476475
def __format__(self, format_spec):
477476
# mixed-in Enums should use the mixed-in type's __format__, otherwise

0 commit comments

Comments
 (0)