-
Notifications
You must be signed in to change notification settings - Fork 764
Open
Labels
bugSomething isn't workingSomething isn't workinguntriagedThis issues has not yet been looked at by the MaintainersThis issues has not yet been looked at by the Maintainers
Description
Flyte & Flytekit version
flyteidl 1.16.1
flytekit 1.16.9
Describe the bug
I passed None to pyflyte run to trigger task which has a optional parameter.
In local mode, TypeTransformerFailedError showed up.
In remote mode, there was an error with converter.
import flytekit as fl
from typing import Optional
@fl.task()
def hello(name: Optional[int] = None):
print(name)Expected behavior
pyflyte run command support --var1 None in local mode and remote mode.
Additional context to reproduce
import flytekit as fl
from typing import Optional
@fl.task()
def hello(name: Optional[int] = None):
print(name)- local mode
pyflyte run main.py hello --name None - remote mode
pyflyte run --remote main.py hello --name None
Screenshots
- Local mode
- Remote mode
Are you sure this issue hasn't been raised already?
- Yes
Have you read the Code of Conduct?
- Yes
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinguntriagedThis issues has not yet been looked at by the MaintainersThis issues has not yet been looked at by the Maintainers
Type
Projects
Status
Backlog