Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion adafruit_ble/advertising/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions adafruit_ble/advertising/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down