Skip to content

Commit 48b3cd9

Browse files
committed
Fix
1 parent 55f2acd commit 48b3cd9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

temporalio/workflow.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,13 @@ def _apply_to_class(
15121512
f"Multiple update methods found for {defn_name} "
15131513
f"(at least on {name} and {updates[update_defn.name].fn.__name__})"
15141514
)
1515+
elif update_defn.validator and not _parameters_identical_up_to_naming(
1516+
update_defn.fn, update_defn.validator
1517+
):
1518+
issues.append(
1519+
f"Update validator method {update_defn.validator.__name__} parameters "
1520+
f"do not match update method {update_defn.fn.__name__} parameters"
1521+
)
15151522
else:
15161523
updates[update_defn.name] = update_defn
15171524

0 commit comments

Comments
 (0)