File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,9 @@ def __init__(self, service):
319
319
self ._adt = 0x21
320
320
self ._prefix = bytes (service .uuid )
321
321
322
- def __get__ (self , obj , cls ):
322
+ def __get__ (
323
+ self , obj , cls
324
+ ): # pylint: disable=too-many-return-statements,too-many-branches
323
325
if obj is None :
324
326
return self
325
327
# If not present at all and mutable, then we init it, otherwise None.
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def __init__(
65
65
model_number = sys .platform
66
66
if serial_number is None :
67
67
try :
68
- import microcontroller
68
+ import microcontroller # pylint: disable=import-outside-toplevel
69
69
70
70
serial_number = binascii .hexlify (
71
71
microcontroller .cpu .uid # pylint: disable=no-member
Original file line number Diff line number Diff line change 30
30
"""
31
31
import struct
32
32
33
- import _bleio
34
33
from micropython import const
34
+ import _bleio
35
35
36
36
from adafruit_ble .characteristics import Attribute
37
37
from adafruit_ble .characteristics import Characteristic
You can’t perform that action at this time.
0 commit comments