gh-128080: remove unnecessary __init__ method from Enum (GH-128081)

remove unnecessary __init__ method from Enum

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
Stephen Morton 2024-12-19 14:07:17 -08:00 committed by GitHub
parent 255762c09f
commit c14db20275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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)