We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9780f2b commit ebc8c47Copy full SHA for ebc8c47
temporalio/nexus/_util.py
@@ -78,19 +78,10 @@ def _get_start_method_input_and_output_type_annotations(
78
try:
79
type_annotations = typing.get_type_hints(start)
80
except TypeError:
81
- warnings.warn(
82
- f"Expected decorated start method {start} to have type annotations"
83
- )
84
return None, None
85
output_type = type_annotations.pop("return", None)
86
87
if len(type_annotations) != 2:
88
- suffix = f": {type_annotations}" if type_annotations else ""
89
90
- f"Expected decorated start method {start} to have exactly 2 "
91
- f"type-annotated parameters (ctx and input), but it has {len(type_annotations)}"
92
- f"{suffix}."
93
94
input_type = None
95
else:
96
ctx_type, input_type = type_annotations.values()
0 commit comments