Skip to content

Commit 8c69fd6

Browse files
committed
updates
Signed-off-by: Ayush Kamat <[email protected]>
1 parent 0c77e3a commit 8c69fd6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/latch/resources/launch_plan.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from typing import Any, Dict
1+
from typing import Any
22

33
from flytekit.core.launch_plan import LaunchPlan as _LaunchPlan
4-
from flytekit.core.workflow import WorkflowBase
4+
from flytekit.core.workflow import PythonFunctionWorkflow
55

66

77
class LaunchPlan:
@@ -27,11 +27,14 @@ class LaunchPlan:
2727
"""
2828

2929
def __init__(
30-
self, workflow: WorkflowBase, name: str, default_params: Dict[str, Any]
30+
self,
31+
workflow: PythonFunctionWorkflow,
32+
name: str,
33+
default_params: dict[str, Any],
3134
):
3235
try: # noqa: SIM105
3336
_LaunchPlan.create(
34-
f"{workflow.__module__}.{workflow.name}.{name}",
37+
f"{workflow.__module__}.{workflow.__name__}.{name}",
3538
workflow,
3639
default_params,
3740
)

0 commit comments

Comments
 (0)