From f94acd9c316093a0396e2b606ec1ff882bfa2bb8 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Tue, 8 Oct 2024 10:55:01 -0400 Subject: [PATCH] Tweak docstring --- temporalio/workflow.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/temporalio/workflow.py b/temporalio/workflow.py index a1b4bcb8..cb1464c4 100644 --- a/temporalio/workflow.py +++ b/temporalio/workflow.py @@ -150,19 +150,11 @@ def init( This may be used on the __init__ method of the workflow class to specify that it accepts the same workflow input arguments as the ``@workflow.run`` - method. It may not be used on any other method. - - If used, the workflow will be instantiated as - ``MyWorkflow(**workflow_input_args)``. If not used, the workflow will be - instantiated as ``MyWorkflow()``. - - Note that the ``@workflow.run`` method is always called as - ``my_workflow.my_run_method(**workflow_input_args)``. If you use the - ``@workflow.init`` decorator, the parameter list of your __init__ and - ``@workflow.run`` methods must be identical. + method. If used, the parameters of your __init__ and ``@workflow.run`` + methods must be identical. Args: - init_fn: The __init__function to decorate. + init_fn: The __init__ method to decorate. """ if init_fn.__name__ != "__init__": raise ValueError("@workflow.init may only be used on the __init__ method")