Skip to content

Commit e07e185

Browse files
authored
Merge pull request #176 from adafruit/pylint-fix
Fixed pylint on latest version
2 parents 92f6fb9 + 5e4e55c commit e07e185

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

adafruit_ble/advertising/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
if TYPE_CHECKING:
1818
from _bleio import ScanEntry
1919

20-
LazyObjectField_GivenClass = TypeVar("LazyObjectField_GivenClass")
20+
LazyObjectField_GivenClass = TypeVar( # pylint: disable=invalid-name
21+
"LazyObjectField_GivenClass"
22+
)
2123

2224
except ImportError:
2325
pass

adafruit_ble/advertising/standard.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,9 @@ def __init__(self, service: Characteristic) -> None:
360360
self._adt = 0x21
361361
self._prefix = bytes(service.uuid)
362362

363-
def __get__(
363+
def __get__( # pylint: disable=too-many-return-statements,too-many-branches
364364
self, obj: Optional[Service], cls: Type[Service]
365-
) -> Optional[
366-
Union["ServiceData", memoryview]
367-
]: # pylint: disable=too-many-return-statements,too-many-branches
365+
) -> Optional[Union["ServiceData", memoryview]]:
368366
if obj is None:
369367
return self
370368
# If not present at all and mutable, then we init it, otherwise None.

0 commit comments

Comments
 (0)