Fix types

This commit is contained in:
Jesse Hills 2022-09-28 11:26:56 +13:00
parent 51e364cdb7
commit b8ad4dd671
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -404,7 +404,7 @@ class APIClient:
async def subscribe_bluetooth_le_advertisements(
self, on_bluetooth_le_advertisement: Callable[[BluetoothLEAdvertisement], None]
) -> Callable([], None):
) -> Callable[[], None]:
self._check_authenticated()
def on_msg(msg: message.Message) -> None:
@ -448,7 +448,7 @@ class APIClient:
address: int,
on_bluetooth_connection_state: Callable[[bool, int], None],
timeout: float = 10.0,
) -> Callable([], None):
) -> Callable[[], None]:
self._check_authenticated()
fut = asyncio.get_event_loop().create_future()
@ -601,7 +601,7 @@ class APIClient:
address: int,
handle: int,
on_bluetooth_gatt_notify: Callable[[int, bytearray], None],
) -> Callable([], None):
) -> Callable[[], None]:
self._check_authenticated()
def on_msg(msg: message.Message) -> None: