magnificent-teacher-86590
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 thoughrich-garden-69988
05/23/2023, 6:16 PMrich-garden-69988
05/23/2023, 6:17 PMtall-lock-23197
Optional[str]
is the right way to annotate; have you been encountering any issues?rich-garden-69988
05/24/2023, 5:10 AMtall-lock-23197
high-accountant-32689
05/24/2023, 5:37 PMtall-lock-23197