Skip to content

Commit e330221

Browse files
committed
Explain parse_private name
1 parent 60b754e commit e330221

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

adafruit_bluefruit_connect/button_packet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def __init__(self, button, pressed):
8080
def parse_private(cls, packet):
8181
"""Construct a ButtonPacket from an incoming packet.
8282
Do not call this directly; call Packet.from_bytes() instead.
83+
pylint makes it difficult to call this method _parse(), hence the name.
8384
"""
8485
button, pressed = struct.unpack(cls._FMT_PARSE, packet)
8586
if not pressed in b'01':

adafruit_bluefruit_connect/color_packet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def __init__(self, color):
6060
def parse_private(cls, packet):
6161
"""Construct a ColorPacket from an incoming packet.
6262
Do not call this directly; call Packet.from_bytes() instead.
63+
pylint makes it difficult to call this method _parse(), hence the name.
6364
"""
6465
return cls(struct.unpack(cls._FMT_PARSE, packet))
6566

adafruit_bluefruit_connect/packet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def parse_private(cls, packet):
122122
is not correct.
123123
124124
Do not call this directly. It's called from ``cls.from_bytes()``.
125+
pylint makes it difficult to call this method _parse(), hence the name.
125126
"""
126127
return cls(*struct.unpack(cls._FMT_PARSE, packet))
127128

0 commit comments

Comments
 (0)