mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
15 lines
369 B
Python
15 lines
369 B
Python
from enum import Enum
|
|
|
|
|
|
class StrEnum(str, Enum):
|
|
"""A string-based Enum class that allows for string comparison."""
|
|
|
|
def __str__(self) -> str:
|
|
return self.value
|
|
|
|
|
|
class ContextChangeReason(StrEnum):
|
|
"""Reasons for context change in the host."""
|
|
undefined = "undefined"
|
|
workfile_open = "workfile.opened"
|
|
workfile_save = "workfile.saved"
|