Skip to content

Commit

Permalink
fix low codecov
Browse files Browse the repository at this point in the history
Signed-off-by: Samhita Alla <[email protected]>
  • Loading branch information
samhita-alla committed Jul 11, 2022
1 parent edcefef commit 096b8ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/flytekit/unit/core/test_type_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ def my_task(a: int) -> typing.NamedTuple("OutputsBC", b=typing.ForwardRef("int")

def test_annotated_namedtuple_output():
@task
def my_task() -> typing.NamedTuple("OutputA", a=Annotated[int, "metadata-a"]):
return 1
def my_task(a: int) -> typing.NamedTuple("OutputA", a=Annotated[int, "metadata-a"]):
return a + 2

assert my_task(a=9) == (11,)
assert get_origin(my_task.python_interface.outputs["a"]) is Annotated


Expand Down

0 comments on commit 096b8ef

Please sign in to comment.