mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 10:16:02 +01:00
Use Optional
This commit is contained in:
parent
da5a78e9a3
commit
66e1f8dfb1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user