From b7259abe3c26e8ad6aaa658f9a813c13e670b3f7 Mon Sep 17 00:00:00 2001 From: Ford Peprah Date: Tue, 10 Sep 2024 10:59:46 -0400 Subject: [PATCH] Fix typing errors. --- bumble/host.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumble/host.py b/bumble/host.py index 6c2c350a..a3d3dad3 100644 --- a/bumble/host.py +++ b/bumble/host.py @@ -171,7 +171,7 @@ def __init__( self.cis_links = {} # CIS links, by connection handle self.sco_links = {} # SCO links, by connection handle self.pending_command = None - self.pending_response = None + self.pending_response: Optional[asyncio.Future[Any]] = None self.number_of_supported_advertising_sets = 0 self.maximum_advertising_data_length = 31 self.local_version = None @@ -534,7 +534,7 @@ async def send_command( # Check the return parameters if required if check_result: if isinstance(response, hci.HCI_Command_Status_Event): - status = response.status + status = response.status # type: ignore[attr-defined] elif isinstance(response.return_parameters, int): status = response.return_parameters elif isinstance(response.return_parameters, bytes):