diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-12-09 11:25:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 11:25:06 -0800 |
commit | f6d1520219899874d78e7710934c9b21af880f9a (patch) | |
tree | 786d0c8b4456b3293f42687a15e377e9ba778937 /Lib/enum.py | |
parent | [3.8] [Enum] reformat and add doc strings (GH-23705). (GH-23706) (diff) | |
download | cpython-f6d1520219899874d78e7710934c9b21af880f9a.tar.gz cpython-f6d1520219899874d78e7710934c9b21af880f9a.tar.bz2 cpython-f6d1520219899874d78e7710934c9b21af880f9a.zip |
bpo-40084: [Enum] dir() includes member attributes (GH-19219) (GH-22853)
(cherry picked from commit 68526fe258da8c01196fd7cf48e8e5f1280bf8fd)
Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
Diffstat (limited to 'Lib/enum.py')
-rw-r--r-- | Lib/enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index 4075114efb0..31afdd3a24f 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -705,7 +705,7 @@ class Enum(metaclass=EnumMeta): for cls in self.__class__.mro() for m in cls.__dict__ if m[0] != '_' and m not in self._member_map_ - ] + ] + [m for m in self.__dict__ if m[0] != '_'] return (['__class__', '__doc__', '__module__'] + added_behavior) def __format__(self, format_spec): |