-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move everything to utils, add documentation about base model generati…
…on and model_override
- Loading branch information
Showing
8 changed files
with
166 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from typing import Union, Type, Callable, List, Optional | ||
from transitions.core import StateIdentifier, CallbacksArg, CallbackFunc, Machine, TransitionConfig, MachineConfig | ||
from transitions.extensions.markup import MarkupConfig | ||
|
||
_placeholder_body: str | ||
|
||
def generate_base_model(config: Union[MachineConfig, MarkupConfig]) -> str: ... | ||
|
||
def with_trigger_decorator(cls: Type[Machine]) -> Type[Machine]: ... | ||
|
||
def trigger_decorator(source: Union[StateIdentifier, List[StateIdentifier]], | ||
dest: Optional[StateIdentifier] = ..., | ||
conditions: CallbacksArg = ..., unless: CallbacksArg = ..., | ||
before: CallbacksArg = ..., after: CallbacksArg = ..., | ||
prepare: CallbacksArg = ...) -> Callable[[CallbackFunc], CallbackFunc]: ... | ||
|
||
def transition(source: Union[StateIdentifier, List[StateIdentifier]], | ||
dest: Optional[StateIdentifier] = ..., | ||
conditions: CallbacksArg = ..., unless: CallbacksArg = ..., | ||
before: CallbacksArg = ..., after: CallbacksArg = ..., | ||
prepare: CallbacksArg = ...) -> TransitionConfig: ... | ||
|
||
def trigger(*configs: TransitionConfig) -> CallbackFunc: ... |