MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / MyWorkflow

Class MyWorkflow

example_code/item_065.py:289–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287
288print("Example 19")
289class MyWorkflow(Workflow):
290 @step
291 def start_engine(self):
292 print("Engine is on!")
293
294 def my_helper_function(self):
295 raise RuntimeError("Should not be called")
296
297 @step
298 def release_brake(self):
299 print("Brake is off!")
300
301
302print("Example 20")

Callers 1

item_065.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected