bpo-31947: remove None default for names param in Enum._create_ (GH-4288)
This commit is contained in:
parent
f303639e3a
commit
b8e21f1289
|
@ -377,7 +377,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