Prefer Union to Optional

This commit is contained in:
clydebarrow 2024-05-13 11:19:30 +10:00
parent 66e1f8dfb1
commit 6c50ca76ef
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ async def process_lambda(
parameters: list[tuple[SafeExpType, str]],
capture: str = "=",
return_type: SafeExpType = None,
) -> Optional[LambdaExpression]:
) -> Union[LambdaExpression, None]:
"""Process the given lambda value into a LambdaExpression.
This is a coroutine because lambdas can depend on other IDs,