cuddly-jelly-27016
05/15/2025, 12:12 AMNone
. We need to raise a warning if the user specifies any other value so that this feature isn't misused.
### Goal: What should the final outcome look like, ideally?
When a user does something like:
@task
def t1(
arg: Optional[str] = "",
)
Flytekit should raise a warning, something like:
Only None can be used as a default argument in flyte tasks
### Describe alternatives you've considered
NA
### 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/flytecuddly-jelly-27016
05/15/2025, 12:12 AM