Use Optional

This commit is contained in:
clydebarrow 2024-05-13 11:17:22 +10:00
parent da5a78e9a3
commit 66e1f8dfb1
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,
) -> LambdaExpression | None:
) -> Optional[LambdaExpression]:
"""Process the given lambda value into a LambdaExpression.
This is a coroutine because lambdas can depend on other IDs,