]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-128080: remove unnecessary `__init__` method from Enum (GH-128081)
authorStephen Morton <git@tungol.org>
Thu, 19 Dec 2024 22:07:17 +0000 (14:07 -0800)
committerGitHub <noreply@github.com>
Thu, 19 Dec 2024 22:07:17 +0000 (14:07 -0800)
remove unnecessary __init__ method from Enum

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Lib/enum.py

index 27be3fb83b2afb9169b7dcbd36dbae75e032f4af..ccc1da42206474f257fd267af5dd32289f40f982 100644 (file)
@@ -1211,9 +1211,6 @@ class Enum(metaclass=EnumType):
             exc = None
             ve_exc = None
 
-    def __init__(self, *args, **kwds):
-        pass
-
     def _add_alias_(self, name):
         self.__class__._add_member_(name, self)