Skip to content

Commit

Permalink
gh-128080: remove unnecessary __init__ method from Enum (GH-128081)
Browse files Browse the repository at this point in the history
remove unnecessary __init__ method from Enum

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
  • Loading branch information
tungol and ZeroIntensity authored Dec 19, 2024
1 parent 255762c commit c14db20
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Lib/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,9 +1211,6 @@ def __new__(cls, value):
exc = None
ve_exc = None

def __init__(self, *args, **kwds):
pass

def _add_alias_(self, name):
self.__class__._add_member_(name, self)

Expand Down

0 comments on commit c14db20

Please sign in to comment.