diff --git a/adafruit_bluefruit_connect/button_packet.py b/adafruit_bluefruit_connect/button_packet.py index db181ad..8191e4c 100644 --- a/adafruit_bluefruit_connect/button_packet.py +++ b/adafruit_bluefruit_connect/button_packet.py @@ -80,6 +80,7 @@ def __init__(self, button, pressed): def parse_private(cls, packet): """Construct a ButtonPacket from an incoming packet. Do not call this directly; call Packet.from_bytes() instead. + pylint makes it difficult to call this method _parse(), hence the name. """ button, pressed = struct.unpack(cls._FMT_PARSE, packet) if not pressed in b'01': diff --git a/adafruit_bluefruit_connect/color_packet.py b/adafruit_bluefruit_connect/color_packet.py index 984168b..1e08177 100644 --- a/adafruit_bluefruit_connect/color_packet.py +++ b/adafruit_bluefruit_connect/color_packet.py @@ -60,6 +60,7 @@ def __init__(self, color): def parse_private(cls, packet): """Construct a ColorPacket from an incoming packet. Do not call this directly; call Packet.from_bytes() instead. + pylint makes it difficult to call this method _parse(), hence the name. """ return cls(struct.unpack(cls._FMT_PARSE, packet)) diff --git a/adafruit_bluefruit_connect/packet.py b/adafruit_bluefruit_connect/packet.py index 72ce294..9222224 100644 --- a/adafruit_bluefruit_connect/packet.py +++ b/adafruit_bluefruit_connect/packet.py @@ -122,6 +122,7 @@ def parse_private(cls, packet): is not correct. Do not call this directly. It's called from ``cls.from_bytes()``. + pylint makes it difficult to call this method _parse(), hence the name. """ return cls(*struct.unpack(cls._FMT_PARSE, packet))