Skip to content

Commit 3f1a956

Browse files
committed
DEV: ps
1 parent 051b718 commit 3f1a956

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

temporalio/workflow.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,12 +1657,24 @@ def _assert_dynamic_handler_args(
16571657
):
16581658
# Old var-arg form
16591659
return False
1660+
16601661
if (
16611662
not arg_types
16621663
or len(arg_types) != 2
16631664
or arg_types[0] is not str
16641665
or arg_types[1] is not Sequence[temporalio.common.RawValue]
16651666
):
1667+
print(arg_types)
1668+
if arg_types:
1669+
print(arg_types[0], id(arg_types[0]), str, id(str))
1670+
print(
1671+
arg_types[1],
1672+
id(arg_types[1]),
1673+
Sequence[temporalio.common.RawValue],
1674+
id(Sequence[temporalio.common.RawValue]),
1675+
)
1676+
else:
1677+
print(f"arg_types is falsey: {type(arg_types)}")
16661678
raise RuntimeError(
16671679
"Dynamic handler must have 3 arguments: self, str, and Sequence[temporalio.common.RawValue]"
16681680
)

0 commit comments

Comments
 (0)