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 9cad03f commit b2be77eCopy full SHA for b2be77e
pydra/compose/tests/test_python_fields.py
@@ -462,7 +462,7 @@ def TestFunc3(a: A):
462
def test_only_one_output_fail():
463
464
@python.define(outputs=["out1", "out2"])
465
- def TestFunc4(a: A):
+ def TestFunc4(a: A) -> A:
466
return a
467
468
with pytest.raises(ValueError, match="Multiple outputs specified"):
@@ -472,7 +472,7 @@ def TestFunc4(a: A):
472
def test_incorrect_num_outputs_fail():
473
474
475
- def TestFunc5(a: A):
+ def TestFunc5(a: A) -> tuple[A, A, A]:
476
return a, a, a
477
478
with pytest.raises(ValueError, match="Length of the outputs"):
0 commit comments