mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-17 21:51:43 +00:00
20 lines
468 B
Python
20 lines
468 B
Python
from typing import TYPE_CHECKING
|
|
from typing import NewType
|
|
from typing import TypedDict
|
|
|
|
if TYPE_CHECKING:
|
|
from spiffworkflow_backend.models.process_group import ProcessGroup
|
|
|
|
|
|
IdToProcessGroupMapping = NewType("IdToProcessGroupMapping", dict[str, "ProcessGroup"])
|
|
|
|
|
|
class ProcessGroupLite(TypedDict):
|
|
id: str
|
|
display_name: str
|
|
|
|
|
|
class ProcessGroupLitesWithCache(TypedDict):
|
|
cache: dict[str, "ProcessGroup"]
|
|
process_groups: list[ProcessGroupLite]
|