<#3726 [Core feature] Support the new Union syntax...
# flytekit
a
#3726 [Core feature] Support the new Union syntax (Python 3.10) Issue created by samhita-alla ### Motivation: Why do you think this is important? The new Union syntax offers a simpler alternative compared to the conventional Union syntax. Before:
Copy code
@task
def hello(username: Union[str, int]) -> str:
    ...
After:
Copy code
@task
def hello(username: str | int) -> str:
    ...
https://peps.python.org/pep-0604/ ### Goal: What should the final outcome look like, ideally?
... | ...
type should be supported. ### Describe alternatives you've considered Union type ### Propose: Link/Inline OR Additional context No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte