https://github.com/python/cpython/commit/c14db202750ff9eaf3919298f1172270b7dfd64e
commit: c14db202750ff9eaf3919298f1172270b7dfd64e
branch: main
author: Stephen Morton <[email protected]>
committer: ethanfurman <[email protected]>
date: 2024-12-19T14:07:17-08:00
summary:

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

remove unnecessary __init__ method from Enum

Co-authored-by: Peter Bierma <[email protected]>

files:
M Lib/enum.py

diff --git a/Lib/enum.py b/Lib/enum.py
index 27be3fb83b2afb..ccc1da42206474 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -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)
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to