def __init__ ( self , enum_obj : Any ) -> None : if enum_obj : self . name = enum_obj self . items = ', ' . join ( [ str ( i ) for i in enum_obj ] ) else : self . items = ''
enum python print name instead of object by default
Initialize attributes for informative output .
def __init__(self, enum_obj: Any) -> None:
        """Initialize attributes for informative output.

        :param enum_obj: Enum object.
        """
        if enum_obj:
            self.name = enum_obj
            self.items = ', '.join([str(i) for i in enum_obj])
        else:
            self.items = ''