This commit is contained in:
J. Nick Koston 2023-11-26 13:21:13 -06:00
parent f247d9131e
commit 0afcb5c94f
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ SOCKET_ERRORS = (
WRITE_EXCEPTIONS = (RuntimeError, ConnectionResetError, OSError)
_int = int
_bytes = bytes
class APIFrameHelper:
@ -196,7 +197,7 @@ class APIFrameHelper:
def resume_writing(self) -> None:
"""Stub."""
def _write_bytes(self, data: bytes, debug_enabled: bool) -> None:
def _write_bytes(self, data: _bytes, debug_enabled: bool) -> None:
"""Write bytes to the socket."""
if debug_enabled:
_LOGGER.debug("%s: Sending frame: [%s]", self._log_name, data.hex())