[Python-checkins] bpo-31947: remove None default for names param in Enum._create_ (GH-4288)

Ethan Furman webhook-mailer at python.org
Sun Apr 15 23:40:38 EDT 2018


https://github.com/python/cpython/commit/b8e21f12891382bc0aac5ccd13dcb4a990d65e0a
commit: b8e21f12891382bc0aac5ccd13dcb4a990d65e0a
branch: master
author: anentropic <ego at anentropic.com>
committer: Ethan Furman <ethan at stoneleaf.us>
date: 2018-04-15T20:40:35-07:00
summary:

bpo-31947: remove None default for names param in Enum._create_ (GH-4288)

files:
M Lib/enum.py

diff --git a/Lib/enum.py b/Lib/enum.py
index e5fe6f3b94a1..96646526ea61 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -377,7 +377,7 @@ def __setattr__(cls, name, value):
             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:



More information about the Python-checkins mailing list