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

View File

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