Skip to content

Commit

Permalink
Fix typing errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkpeprah committed Sep 10, 2024
1 parent 88e3a2b commit b7259ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumble/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b7259ab

Please sign in to comment.