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:
Miss Islington (bot) 2018-05-15 08:19:50 -07:00 committed by Ethan Furman
parent 726894addc
commit c50e5b1f1f
1 changed files with 1 additions and 1 deletions

View File

@ -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: