`EnumType` attempts to create a custom docstring for each enum/flag, but that was failing with pathological flags that had no members (only multi-bit aliases).
(cherry picked from commit
08cfc3dabf0f81a4494cd0d697befc7d0dec77b7)
Co-authored-by: Tobin Yehle <tobinyehle@gmail.com>
#
# 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.