diff --git a/bumble/pandora/security.py b/bumble/pandora/security.py index c14603ee..b36fb187 100644 --- a/bumble/pandora/security.py +++ b/bumble/pandora/security.py @@ -110,7 +110,7 @@ async def confirm(self, auto: bool = False) -> bool: event = self.add_origin(PairingEvent(just_works=empty_pb2.Empty())) self.service.event_queue.put_nowait(event) - answer = await anext(self.service.event_answer) # pytype: disable=name-error + answer = await anext(self.service.event_answer) # type: ignore assert answer.event == event assert answer.answer_variant() == 'confirm' and answer.confirm is not None return answer.confirm @@ -125,7 +125,7 @@ async def compare_numbers(self, number: int, digits: int = 6) -> bool: event = self.add_origin(PairingEvent(numeric_comparison=number)) self.service.event_queue.put_nowait(event) - answer = await anext(self.service.event_answer) # pytype: disable=name-error + answer = await anext(self.service.event_answer) # type: ignore assert answer.event == event assert answer.answer_variant() == 'confirm' and answer.confirm is not None return answer.confirm @@ -140,7 +140,7 @@ async def get_number(self) -> Optional[int]: event = self.add_origin(PairingEvent(passkey_entry_request=empty_pb2.Empty())) self.service.event_queue.put_nowait(event) - answer = await anext(self.service.event_answer) # pytype: disable=name-error + answer = await anext(self.service.event_answer) # type: ignore assert answer.event == event if answer.answer_variant() is None: return None @@ -157,7 +157,7 @@ async def get_string(self, max_length: int) -> Optional[str]: event = self.add_origin(PairingEvent(pin_code_request=empty_pb2.Empty())) self.service.event_queue.put_nowait(event) - answer = await anext(self.service.event_answer) # pytype: disable=name-error + answer = await anext(self.service.event_answer) # type: ignore assert answer.event == event if answer.answer_variant() is None: return None