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:
Miss Islington (bot) 2018-04-16 13:49:34 -07:00 committed by GitHub
parent f20eca7c3f
commit 3bcca488fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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