Source code for cellpack.autopack.interface_objects.meta_enum

from enum import Enum


[docs] class MetaEnum(str, Enum):
[docs] @classmethod def values(cls): return [member.value for member in cls]
[docs] @classmethod def is_member(cls, item): values = cls.values() return item in values