Fix partial typing (#118022)

This commit is contained in:
Marc Mueller 2024-05-24 10:24:18 +02:00 committed by GitHub
parent 0e03e591e7
commit 3b4b36a9fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 15 deletions

View file

@ -103,7 +103,7 @@ def pong_message(iden: int) -> dict[str, Any]:
@callback
def _forward_events_check_permissions(
send_message: Callable[[bytes | str | dict[str, Any] | Callable[[], str]], None],
send_message: Callable[[bytes | str | dict[str, Any]], None],
user: User,
message_id_as_bytes: bytes,
event: Event,
@ -123,7 +123,7 @@ def _forward_events_check_permissions(
@callback
def _forward_events_unconditional(
send_message: Callable[[bytes | str | dict[str, Any] | Callable[[], str]], None],
send_message: Callable[[bytes | str | dict[str, Any]], None],
message_id_as_bytes: bytes,
event: Event,
) -> None:
@ -365,7 +365,7 @@ def _send_handle_get_states_response(
@callback
def _forward_entity_changes(
send_message: Callable[[str | bytes | dict[str, Any] | Callable[[], str]], None],
send_message: Callable[[str | bytes | dict[str, Any]], None],
entity_ids: set[str],
user: User,
message_id_as_bytes: bytes,