from enum import Enum class KompasCommand(str, Enum): OPEN_KOMPAS = "open_kompas" GET_AVAILABLE_ACTIONS = "get_available_actions" @classmethod def has_value(cls, value): return any(value == item.value for item in cls)