Skip to content

feat(core): add generic StateMachine base class for typed state transitions#811

Draft
ryuwd wants to merge 1 commit intoDIRACGrid:mainfrom
ryuwd:feat/state-machine
Draft

feat(core): add generic StateMachine base class for typed state transitions#811
ryuwd wants to merge 1 commit intoDIRACGrid:mainfrom
ryuwd:feat/state-machine

Conversation

@ryuwd
Copy link
Contributor

@ryuwd ryuwd commented Feb 27, 2026

Reusable declarative state machine utility for diracx. Each system subclasses StateMachine with StrEnum states and a transitions dict. Validation runs at class creation via init_subclass.

Reusable declarative state machine utility for diracx. Each system
subclasses StateMachine with StrEnum states and a transitions dict.
Validation runs at class creation via __init_subclass__.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant