bpo-31947: remove None default for names param in Enum._create_ GH-4288 (GH-6485)
(cherry picked from commit b8e21f1289
)
Co-authored-by: anentropic <ego@anentropic.com>
This commit is contained in:
parent
726894addc
commit
c50e5b1f1f
|
@ -361,7 +361,7 @@ class EnumMeta(type):
|
|||
raise AttributeError('Cannot reassign members.')
|
||||
super().__setattr__(name, value)
|
||||
|
||||
def _create_(cls, class_name, names=None, *, module=None, qualname=None, type=None, start=1):
|
||||
def _create_(cls, class_name, names, *, module=None, qualname=None, type=None, start=1):
|
||||
"""Convenience method to create a new Enum class.
|
||||
|
||||
`names` can be:
|
||||
|
|
Loading…
Reference in New Issue