cuddly-jelly-27016
06/14/2025, 12:09 AMpyflyte run remote-task (and remote-workflow and remote-launchplan):
$ pyflyte run remote-task example.example_task --no-flag
TypeTransformerFailedError: Python value cannot be None, expected <class 'bool'>/Flyte Serialized object (LiteralType):
simple: 4
I'm using flytekit 1.15.0
### Expected behavior
It should be possible to set boolean parameters to False using pyflyte run remote-task. It should work the same as pyflyte run --remote.
### Additional context to reproduce
example.py
from flytekit import task
@task()
def example_task(flag: bool) -> bool:
return flag
Works
pyflyte run --remote example.py example_task --flag
pyflyte run --remote example.py example_task --no-flag
pyflyte run remote-task example.example_task --flag
Fails
pyflyte run remote-task example.example_task --no-flag
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
06/14/2025, 12:09 AMcuddly-jelly-27016
06/17/2025, 10:17 PMcuddly-jelly-27016
06/17/2025, 10:17 PM