diff --git a/adafruit_ble/advertising/__init__.py b/adafruit_ble/advertising/__init__.py index a5d681a..02324d3 100644 --- a/adafruit_ble/advertising/__init__.py +++ b/adafruit_ble/advertising/__init__.py @@ -17,7 +17,9 @@ if TYPE_CHECKING: from _bleio import ScanEntry - LazyObjectField_GivenClass = TypeVar("LazyObjectField_GivenClass") + LazyObjectField_GivenClass = TypeVar( # pylint: disable=invalid-name + "LazyObjectField_GivenClass" + ) except ImportError: pass diff --git a/adafruit_ble/advertising/standard.py b/adafruit_ble/advertising/standard.py index 74f27dd..3c9ef74 100644 --- a/adafruit_ble/advertising/standard.py +++ b/adafruit_ble/advertising/standard.py @@ -360,11 +360,9 @@ def __init__(self, service: Characteristic) -> None: self._adt = 0x21 self._prefix = bytes(service.uuid) - def __get__( + def __get__( # pylint: disable=too-many-return-statements,too-many-branches self, obj: Optional[Service], cls: Type[Service] - ) -> Optional[ - Union["ServiceData", memoryview] - ]: # pylint: disable=too-many-return-statements,too-many-branches + ) -> Optional[Union["ServiceData", memoryview]]: if obj is None: return self # If not present at all and mutable, then we init it, otherwise None.