From: Stephen Morton Date: Thu, 19 Dec 2024 22:07:17 +0000 (-0800) Subject: gh-128080: remove unnecessary `__init__` method from Enum (GH-128081) X-Git-Tag: v3.14.0a4~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c14db202750ff9eaf3919298f1172270b7dfd64e;p=thirdparty%2FPython%2Fcpython.git gh-128080: remove unnecessary `__init__` method from Enum (GH-128081) remove unnecessary __init__ method from Enum Co-authored-by: Peter Bierma --- diff --git a/Lib/enum.py b/Lib/enum.py index 27be3fb83b2a..ccc1da422064 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -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)