Skip to content

Commit e058dc7

Browse files
committed
fixed up tests
1 parent dce77d9 commit e058dc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydra/compose/tests/test_python_fields.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def TestFunc3(a: A):
462462
def test_only_one_output_fail():
463463

464464
@python.define(outputs=["out1", "out2"])
465-
def TestFunc4(a: A):
465+
def TestFunc4(a: A) -> A:
466466
return a
467467

468468
with pytest.raises(ValueError, match="Multiple outputs specified"):
@@ -472,7 +472,7 @@ def TestFunc4(a: A):
472472
def test_incorrect_num_outputs_fail():
473473

474474
@python.define(outputs=["out1", "out2"])
475-
def TestFunc5(a: A):
475+
def TestFunc5(a: A) -> tuple[A, A, A]:
476476
return a, a, a
477477

478478
with pytest.raises(ValueError, match="Length of the outputs"):

0 commit comments

Comments
 (0)