linting etc

This commit is contained in:
Jesse Hills 2022-09-28 22:16:35 +13:00
parent 46de2dd49d
commit b61110c154
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,4 @@
# pylint: disable=too-many-lines
import asyncio
import logging
from typing import (
@ -22,8 +23,8 @@ from .api_pb2 import ( # type: ignore
BluetoothConnectionsFreeResponse,
BluetoothDeviceConnectionResponse,
BluetoothDeviceRequest,
BluetoothGATTGetServicesRequest,
BluetoothGATTGetServicesDoneResponse,
BluetoothGATTGetServicesRequest,
BluetoothGATTGetServicesResponse,
BluetoothGATTNotifyDataResponse,
BluetoothGATTNotifyRequest,
@ -497,7 +498,7 @@ class APIClient:
async def bluetooth_gatt_get_services(self, address: int) -> BluetoothGATTServices:
self._check_authenticated()
def do_append(msg: message.Message) -> None:
def do_append(msg: message.Message) -> bool:
return isinstance(msg, BluetoothGATTGetServicesResponse)
def do_stop(msg: message.Message) -> bool:
@ -612,7 +613,7 @@ class APIClient:
address: int,
handle: int,
on_bluetooth_gatt_notify: Callable[[int, bytearray], None],
) -> Coroutine[Any, Any, None]:
) -> Callable[[], Coroutine[Any, Any, None]]:
self._check_authenticated()
def on_msg(msg: message.Message) -> None:

View File

@ -3,8 +3,8 @@ from .api_pb2 import ( # type: ignore
BluetoothConnectionsFreeResponse,
BluetoothDeviceConnectionResponse,
BluetoothDeviceRequest,
BluetoothGATTGetServicesRequest,
BluetoothGATTGetServicesDoneResponse,
BluetoothGATTGetServicesRequest,
BluetoothGATTGetServicesResponse,
BluetoothGATTNotifyDataResponse,
BluetoothGATTNotifyRequest,