1 2 3 4 5 6 7 8 9 10
from enum import Enum class ConfigShare(str, Enum): AUTO = "auto" DISABLED = "disabled" MANUAL = "manual" def __str__(self) -> str: return str(self.value)