Skip to content

Commit

Permalink
typing on dsl.cof
Browse files Browse the repository at this point in the history
  • Loading branch information
yaythomas committed Oct 17, 2022
1 parent 659f024 commit a745d2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pypyr/steps/dsl/cof.py
Expand Up @@ -19,7 +19,8 @@ def instruction_from_dict(config: Mapping,
name: str,
instruction_type: type[ControlOfFlowInstruction],
context_key: str,
original_config: tuple[str, Mapping]):
original_config: tuple[str, Mapping]
) -> ControlOfFlowInstruction:
"""Create a Call or Jump from input dict."""
if isinstance(config, str):
groups = [config]
Expand Down Expand Up @@ -69,7 +70,7 @@ def control_of_flow_instruction(
name: str,
instruction_type: type[ControlOfFlowInstruction],
context: Context,
context_key: str):
context_key: str) -> None:
"""Run a control of flow instruction.
The step config in the context dict looks like this:
Expand Down

0 comments on commit a745d2b

Please sign in to comment.