[BUG][Flytekit] Incorrect NamedTuple type in Python 3.9 #1165
Labels
bug
Something isn't working
flytekit
FlyteKit Python related issue
python-3.9+
Capture bugs that affect flytekit for versions greater than python3.9
untriaged
This issues has not yet been looked at by the Maintainers
Describe the bug
The test
test_proto
in the filetests/flytekit/unit/core/test_protobuf.py
is failing with the error:TypeError: isinstance() arg 2 must be a type or tuple of types
.The issue is, type transformer is
<function NamedTuple>
in Python 3.9 and<class 'typing.NamedTuple'>
in Python 3.8.Expected behavior
No error should pop up.
To Reproduce
Steps to reproduce the behavior:
Use
errors_pb2.ContainerError
as the datatype in a task.The text was updated successfully, but these errors were encountered: