Jay Ganbat
05/23/2023, 5:53 PM@task
def hello(username: Optional[str]) -> str:
because i tried to define like this
@task
def hello(username: str | None) -> str:
but getting Failed with Unknown Exception <class 'AssertionError'> Reason: Failed to Bind variable username for function sandbox.subworkflow.hello.
first one works thoughGreg Gydush
05/23/2023, 6:16 PMSamhita Alla
Optional[str]
is the right way to annotate; have you been encountering any issues?Greg Gydush
05/24/2023, 5:10 AMSamhita Alla
Eduardo Apolinario (eapolinario)
05/24/2023, 5:37 PMSamhita Alla