From bbfca558244fc3cd234f90784d269032118e3b56 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Tue, 12 Dec 2017 10:48:28 +0000 Subject: [PATCH] Add basic typing to the workflow module --- opentech/apply/workflow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentech/apply/workflow.py b/opentech/apply/workflow.py index 5b0cbde8c..173156685 100644 --- a/opentech/apply/workflow.py +++ b/opentech/apply/workflow.py @@ -1,5 +1,5 @@ class Workflow: - def __init__(self, name, *stages): + def __init__(self, name: str, *stages: Stage) -> None: self.name = name if not stages: raise ValueError('Stages must be supplied') @@ -7,5 +7,5 @@ class Workflow: class Stage: - def __init__(self, name): + def __init__(self, name: str) -> None: self.name = name -- GitLab