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
But the inferred Python dataclass type is flytekit.core.type_engine.A with field Field(name='b',type=<class 'str'>, ...). This should've been the Enum, instead of a string. This issue is caused by this code.
Describe the bug
Consider following task definition:
Then register. Then execute with:
This triggers error:
If the enum is not inside a dataclass, but an argument to the task itself, the bug does not occur.
Expected behavior
The execution should be successfully created.
If instead I submit via the CLI
The execution is created as expected.
Additional context to reproduce
Using flytekit version
1.14.3
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: