diff options
-rw-r--r-- | Lib/enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index 64b4419..0b97d3d 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -538,7 +538,7 @@ class EnumType(type): # # create a default docstring if one has not been provided if enum_class.__doc__ is None: - if not member_names: + if not member_names or not list(enum_class): enum_class.__doc__ = classdict['__doc__'] = _dedent("""\ Create a collection of name/value pairs. |