You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With >=1.13.6, the flyte will throw a TypeTransformerFailedError error:
% pyflyte run workflow.py print_workflow
Running Execution on local.
TypeTransformerFailedError: Failed to convert inputs of task 'workflow.print_dict':
Failed argument 'x': Not all values in'{}' are of type<class 'str'>
Expected behavior
The workflow/task should be able to accept empty dict like they used to in <1.13.6. Unless this breaking change is intentional?
We are also encountering this issue, and it has broken several of our tasks and unit tests. As a temporary workaround, we've switched to using the deprecated typing.List and typing.Dict types for lists/dicts that need support for being empty, but this feels quite messy..
Describe the bug
Before flyteorg/flytekit#2743 introduced in
1.13.6
, the workflow/task like below can handle empty dict.With
>=1.13.6
, the flyte will throw a TypeTransformerFailedError error:Expected behavior
The workflow/task should be able to accept empty dict like they used to in
<1.13.6
. Unless this breaking change is intentional?Additional context to reproduce
The cause of the error is due to this part of the code. Similar error will raise for empty list/tuple/set due to similar logic.
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: