Skip to content
Snippets Groups Projects
Commit bbfca558 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add basic typing to the workflow module

parent 0304394d
No related branches found
No related tags found
No related merge requests found
class Workflow: class Workflow:
def __init__(self, name, *stages): def __init__(self, name: str, *stages: Stage) -> None:
self.name = name self.name = name
if not stages: if not stages:
raise ValueError('Stages must be supplied') raise ValueError('Stages must be supplied')
...@@ -7,5 +7,5 @@ class Workflow: ...@@ -7,5 +7,5 @@ class Workflow:
class Stage: class Stage:
def __init__(self, name): def __init__(self, name: str) -> None:
self.name = name self.name = name
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment