1 2 3 4 5 6 7 8 9
from enum import Enum class LayoutConfig(str, Enum): AUTO = "auto" STRETCH = "stretch" def __str__(self) -> str: return str(self.value)