summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranentropic <ego@anentropic.com>2018-04-16 03:40:35 (GMT)
committerEthan Furman <ethan@stoneleaf.us>2018-04-16 03:40:35 (GMT)
commitb8e21f12891382bc0aac5ccd13dcb4a990d65e0a (patch)
tree7bc0ee751b133fc7a86f58e09dddce1d78752d61
parentf303639e3ac96cfe6c1438f1c594226941f46216 (diff)
downloadcpython-b8e21f12891382bc0aac5ccd13dcb4a990d65e0a.zip
cpython-b8e21f12891382bc0aac5ccd13dcb4a990d65e0a.tar.gz
cpython-b8e21f12891382bc0aac5ccd13dcb4a990d65e0a.tar.bz2
bpo-31947: remove None default for names param in Enum._create_ (GH-4288)
-rw-r--r--Lib/enum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index e5fe6f3..9664652 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -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: