Join Slack
Powered by
<#3348 support None type in pyflyte run command> P...
# flyte-github
a
acoustic-carpenter-78188
11/05/2025, 5:24 AM
#3348 support None type in pyflyte run command
Pull request opened by
0yukali0
## Tracking issue
flyteorg/flyte#6717
## Why are the changes needed? pyflyte command supports strong typing in pipeline and allow users to set the parameters by --var. Supported None type make users set the None type or other values in their willing. ## What changes were proposed in this pull request?
pyflyte run command
parse None string to None type if type of parameter is Optional type.
pyflyte run --remote command
parse None string to None type whether type of parameter is Optional type. ## How was this patch tested? # pyflyte run main.py hello --name None # pyflyte run --remote main.py hello --name None import flytekit as fl from typing import Optional @fl.task() def hello(name: Optional[int] = None): print(name) ### Setup process 1. flytectl demo start 2. uv venv -p 3.12 3. uv pip install flytekit 4. pyflyte run main.py hello --name None 5. pyflyte run --remote main.py hello --name None ### Screenshots 1. Local mode
[image](https://private-user-images.githubusercontent.com/45888688/509940170-87415d9d-c95e-4677-af2a-12389a11b922.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjIzOTE0MjEsIm5iZiI6MTc2MjM5MTEyMSwicGF0aCI6Ii80NTg4ODY4OC81MDk5NDAxNzAtODc0MTVkOWQtYzk1ZS00Njc3LWFmMmEtMTIzODlhMTFiOTIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTExMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMTA2VDAxMDUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiYmE0NzVmYWFjNGY4YWNhNGRhOWViMjlmN2U1NjYxMWY0ZTE5OTc5NzZiNTJlMDZlNzlhNTFjMDhhZDQxMTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XXWR8g57k6kkiNWkFkQhQXRAFF5vrik9hQNjU35gubg)
1. Remote mode
[image](https://private-user-images.githubusercontent.com/45888688/509940034-5c62a592-761f-4816-bbac-d53baeb4f891.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjIzOTE0MjEsIm5iZiI6MTc2MjM5MTEyMSwicGF0aCI6Ii80NTg4ODY4OC81MDk5NDAwMzQtNWM2MmE1OTItNzYxZi00ODE2LWJiYWMtZDUzYmFlYjRmODkxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTExMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMTA2VDAxMDUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxNDJiM2FhYTNkZDE2MDAyNTc3NGM3ZTdjMDRhZGQ4OTg3NDNlM2IwNDc2NDBmMGNlNzBhMjY1Y2FlMzc0NjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Jc8zZsF02qffk89tMUna_YC1he8UY2R3l5liS2aUt-w)
1. UI
[image](https://private-user-images.githubusercontent.com/45888688/509939930-ba7257dc-4aa8-4245-b1c3-f1c1d946afc7.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjIzOTE0MjEsIm5iZiI6MTc2MjM5MTEyMSwicGF0aCI6Ii80NTg4ODY4OC81MDk5Mzk5MzAtYmE3MjU3ZGMtNGFhOC00MjQ1LWIxYzMtZjFjMWQ5NDZhZmM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTExMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMTA2VDAxMDUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzOTJjZjU2OTA0ZWIyZDExNzY1NjU2MmVkYjk0OWUxMzU1ZWJjZjA1OGEyMmE4M2I4MzQ3OTNiMTkyNzkxMzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.O1ky8262Cn4KdPmsnFethaqCzAMHLg2B1MWlbWKAMz8)
## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link
https://bito.ai#summarystart|
### Summary by Bito • This pull request introduces support for the None type in parameter handling within the pyflyte command, allowing users to specify None as a valid input for optional parameters. • The changes ensure consistent behavior across both local and remote execution scenarios. • This update is crucial for users who need to pass None values explicitly in their workflows. • Overall summary: introduces support for None type in parameter handling, affecting local and remote execution.
flyteorg/flytekit
acoustic-carpenter-78188
11/06/2025, 12:13 AM
#3348 support None type in pyflyte run command
Pull request ready for review by
0yukali0
flyteorg/flytekit
2
Views
Open in Slack
Previous
Next