acoustic-carpenter-78188
09/13/2023, 12:37 AM@task
def t1() -> Annotated[pd.DataFrame, kwtypes(a=int)]:
...
@task
def t2(df: Annotated[pd.DataFrame, kwtypes(a=float)]):
...
It's conceivable that sometimes you want this type conversion (from int to float) to happen and sometimes you do not.
What is the correct way of allowing the user to control this behavior?
Also where should this be enforced? Enforcing this at run-time is likely best to give as much flexibility to the plugin author as possible.
Implementation
?
Misc
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyteacoustic-carpenter-78188
09/13/2023, 12:37 AM