diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-01-05 17:06:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 17:06:02 (GMT) |
commit | 817a6bc9f7b802511c4d42273a621c556a48870b (patch) | |
tree | ba7878770eb67fbf09d17de6586825485268ad2f /Lib/enum.py | |
parent | 43aac29cbbb8a963a22c334b5b795d1e43417d6b (diff) | |
download | cpython-817a6bc9f7b802511c4d42273a621c556a48870b.zip cpython-817a6bc9f7b802511c4d42273a621c556a48870b.tar.gz cpython-817a6bc9f7b802511c4d42273a621c556a48870b.tar.bz2 |
bpo-46269: [Enum] remove special-casing of `__new__` in `EnumType.__dir__` (GH-30421)
Diffstat (limited to 'Lib/enum.py')
-rw-r--r-- | Lib/enum.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index 8efc38c..86928b4 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -652,10 +652,6 @@ class EnumType(type): # if and only if they have been user-overridden enum_dunders = set(filter(_is_dunder, enum_dict)) - # special-case __new__ - if self.__new__ is not first_enum_base.__new__: - add_to_dir('__new__') - for cls in mro: # Ignore any classes defined in this module if cls is object or is_from_this_module(cls): |