From a745d2bd85b2d63204776e3f9795ab46ec93acce Mon Sep 17 00:00:00 2001 From: thomas <18520168+yaythomas@users.noreply.github.com> Date: Mon, 17 Oct 2022 17:59:13 +0100 Subject: [PATCH] typing on dsl.cof --- pypyr/steps/dsl/cof.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pypyr/steps/dsl/cof.py b/pypyr/steps/dsl/cof.py index 23203dc..f3d8739 100644 --- a/pypyr/steps/dsl/cof.py +++ b/pypyr/steps/dsl/cof.py @@ -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] @@ -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: