Skip to content

Commit 9efa23a

Browse files
committed
pylint
1 parent f466835 commit 9efa23a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

adafruit_ble/advertising/standard.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ def __init__(self, service):
319319
self._adt = 0x21
320320
self._prefix = bytes(service.uuid)
321321

322-
def __get__(self, obj, cls):
322+
def __get__(
323+
self, obj, cls
324+
): # pylint: disable=too-many-return-statements,too-many-branches
323325
if obj is None:
324326
return self
325327
# If not present at all and mutable, then we init it, otherwise None.

adafruit_ble/services/standard/device_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(
6565
model_number = sys.platform
6666
if serial_number is None:
6767
try:
68-
import microcontroller
68+
import microcontroller # pylint: disable=import-outside-toplevel
6969

7070
serial_number = binascii.hexlify(
7171
microcontroller.cpu.uid # pylint: disable=no-member

adafruit_ble/services/standard/hid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"""
3131
import struct
3232

33-
import _bleio
3433
from micropython import const
34+
import _bleio
3535

3636
from adafruit_ble.characteristics import Attribute
3737
from adafruit_ble.characteristics import Characteristic

0 commit comments

Comments
 (0)