mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-03-03 10:50:44 +00:00
21 lines
452 B
Python
21 lines
452 B
Python
|
from typing import NewType, TypedDict
|
||
|
from typing import TYPE_CHECKING
|
||
|
|
||
|
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]
|