bpo-31947: remove None default for names param in Enum._create_ (GH-4288)
(cherry picked from commit b8e21f1289
)
Co-authored-by: anentropic <ego@anentropic.com>
This commit is contained in:
parent
f20eca7c3f
commit
3bcca488fe
|
@ -383,7 +383,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