]> granicus.if.org Git - python/commitdiff
bpo-31947: remove None default for names param in Enum._create_ (GH-4288)
authoranentropic <ego@anentropic.com>
Mon, 16 Apr 2018 03:40:35 +0000 (04:40 +0100)
committerEthan Furman <ethan@stoneleaf.us>
Mon, 16 Apr 2018 03:40:35 +0000 (20:40 -0700)
Lib/enum.py

index e5fe6f3b94a1d0f9c2cd02b2797cbbc5f79f5f9e..96646526ea61c3bd8c48aa7950afb5364a0c3a18 100644 (file)
@@ -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: