@@ -107,7 +107,7 @@ def can_reconstruct(self, target_type: Any) -> bool:
107107 return super ().can_reconstruct (target_type )
108108
109109 def act (ctx , w : Widget ):
110- ...
110+ pass
111111
112112 # The default converter does not recognize Widget...
113113 assert type_discovery .activity_input_type (act ) is None
@@ -118,48 +118,48 @@ def act(ctx, w: Widget):
118118class TestInputTypeDiscovery :
119119 def test_orchestrator_input_type_dataclass (self ):
120120 def orch (ctx , order : Order ):
121- ...
121+ pass
122122 assert type_discovery .orchestrator_input_type (orch ) is Order
123123
124124 def test_activity_input_type_dataclass (self ):
125125 def act (ctx , order : Order ):
126- ...
126+ pass
127127 assert type_discovery .activity_input_type (act ) is Order
128128
129129 def test_input_type_builtin_returns_none (self ):
130130 def act (ctx , value : int ):
131- ...
131+ pass
132132 assert type_discovery .activity_input_type (act ) is None
133133
134134 def test_input_type_unannotated_returns_none (self ):
135135 def act (ctx , value ):
136- ...
136+ pass
137137 assert type_discovery .activity_input_type (act ) is None
138138
139139 def test_input_type_no_input_param_returns_none (self ):
140140 def orch (ctx ):
141- ...
141+ pass
142142 assert type_discovery .orchestrator_input_type (orch ) is None
143143
144144 def test_postponed_annotation_resolves (self ):
145145 # Annotation provided as a string (PEP 563 style) still resolves because
146146 # Order is importable in this module's globals.
147147 def act (ctx , order : "Order" ):
148- ...
148+ pass
149149 assert type_discovery .activity_input_type (act ) is Order
150150
151151 def test_function_entity_input_type (self ):
152152 def counter (ctx , order : Order ):
153- ...
153+ pass
154154 assert type_discovery .entity_input_type (counter , "any_op" ) is Order
155155
156156 def test_class_entity_input_type_per_operation (self ):
157157 class Store (entities .DurableEntity ):
158158 def add (self , order : Order ):
159- ...
159+ pass
160160
161161 def clear (self ):
162- ...
162+ pass
163163
164164 assert type_discovery .entity_input_type (Store , "add" ) is Order
165165 # Operation with no input parameter.
@@ -171,32 +171,32 @@ def clear(self):
171171class TestActivityOutputTypeDiscovery :
172172 def test_dataclass_return_annotation (self ):
173173 def act (ctx , _ ) -> Order :
174- ...
174+ pass
175175 assert type_discovery .activity_output_type (act ) is Order
176176
177177 def test_from_json_return_annotation (self ):
178178 def act (ctx , _ ) -> Money :
179- ...
179+ pass
180180 assert type_discovery .activity_output_type (act ) is Money
181181
182182 def test_builtin_return_annotation_returns_none (self ):
183183 def act (ctx , _ ) -> int :
184- ...
184+ pass
185185 assert type_discovery .activity_output_type (act ) is None
186186
187187 def test_unannotated_return_returns_none (self ):
188188 def act (ctx , _ ):
189- ...
189+ pass
190190 assert type_discovery .activity_output_type (act ) is None
191191
192192 def test_optional_dataclass_return (self ):
193193 def act (ctx , _ ) -> Optional [Order ]:
194- ...
194+ pass
195195 assert type_discovery .activity_output_type (act ) is Optional [Order ]
196196
197197 def test_postponed_return_annotation_resolves (self ):
198198 def act (ctx , _ ) -> "Order" :
199- ...
199+ pass
200200 assert type_discovery .activity_output_type (act ) is Order
201201
202202 def test_string_name_returns_none (self ):
@@ -223,7 +223,7 @@ class TestSignatureCaching:
223223
224224 def test_signature_inspected_once_per_function (self ):
225225 def act (ctx , order : Order ) -> Money :
226- ...
226+ pass
227227
228228 real_signature = inspect .signature
229229 calls : list [Any ] = []
@@ -248,7 +248,7 @@ def counting_signature(obj, *args, **kwargs):
248248 def test_entity_operation_signature_inspected_once (self ):
249249 class Store (entities .DurableEntity ):
250250 def add (self , order : Order ):
251- ...
251+ pass
252252
253253 real_signature = inspect .signature
254254 calls : list [Any ] = []
@@ -277,7 +277,7 @@ def can_reconstruct(self, target_type: Any) -> bool:
277277 return super ().can_reconstruct (target_type )
278278
279279 def act (ctx , w : Widget ) -> Widget :
280- ...
280+ pass
281281
282282 # Prime the cache with the converter that *does* recognize Widget, then
283283 # switch back: the cached structure must not bake in the first answer.
@@ -303,7 +303,7 @@ def can_reconstruct(self, target_type: Any) -> bool:
303303 return super ().can_reconstruct (target_type )
304304
305305 def act (ctx , w : Widget ):
306- ...
306+ pass
307307
308308 converter = ToggleConverter ()
309309 assert type_discovery .activity_input_type (act , converter ) is None
@@ -314,7 +314,7 @@ def act(ctx, w: Widget):
314314
315315 def test_converter_is_consulted_on_every_call (self ):
316316 def act (ctx , order : Order ) -> Order :
317- ...
317+ pass
318318
319319 converter = _CountingConverter ()
320320 for _ in range (3 ):
@@ -328,7 +328,7 @@ def act(ctx, order: Order) -> Order:
328328
329329 def test_unannotated_parameters_are_not_offered_to_the_converter (self ):
330330 def act (ctx , value , * args , keyword_only : Order = None , ** kwargs ):
331- ...
331+ pass
332332
333333 converter = _CountingConverter ()
334334 assert type_discovery .activity_input_type (act , converter ) is None
@@ -344,7 +344,7 @@ def __eq__(self, other):
344344 return self is other
345345
346346 def __call__ (self , ctx , order : Order ) -> Order :
347- ...
347+ pass
348348
349349 act = Callable_ ()
350350 assert type_discovery .activity_input_type (act ) is Order
@@ -361,7 +361,7 @@ class ConfiguredActivity:
361361 retries : int = 3
362362
363363 def __call__ (self , ctx , order : Order ) -> Order :
364- ...
364+ pass
365365
366366 handler = ConfiguredActivity ()
367367 with pytest .raises (TypeError ):
0 commit comments