Skip to content

Commit a1ed985

Browse files
committed
fixes for format and pylint
1 parent 6eb0c37 commit a1ed985

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

adafruit_portalbase/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class PortalBase:
5555
5656
"""
5757

58-
# pylint: disable=too-many-instance-attributes, too-many-branches, too-many-public-methods
58+
# pylint: disable=too-many-instance-attributes, too-many-branches, too-many-public-methods, too-many-arguments
5959
def __init__(
6060
self,
6161
network,

adafruit_portalbase/graphics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def set_background(self, file_or_color, position=None):
102102

103103
def qrcode(
104104
self, qr_data, *, qr_size=1, x=0, y=0, qr_color=0x000000
105-
): # pylint: disable=invalid-name
105+
): # pylint: disable=invalid-name, too-many-arguments
106106
"""Display a QR code
107107
108108
:param qr_data: The data for the QR code, None to remove.

adafruit_portalbase/network.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ def get_local_time(self, location=None, max_attempts=10):
271271
failing or use None to disable. Defaults to 10.
272272
273273
"""
274-
reply = self.get_strftime(TIME_SERVICE_FORMAT, location=location, max_attempts=max_attempts)
274+
reply = self.get_strftime(
275+
TIME_SERVICE_FORMAT, location=location, max_attempts=max_attempts
276+
)
275277
if reply:
276278
times = reply.split(" ")
277279
the_date = times[0]
@@ -635,7 +637,7 @@ def fetch_data(
635637
json_path=None,
636638
regexp_path=None,
637639
timeout=10,
638-
):
640+
): # pylint: disable=too-many-arguments
639641
"""Fetch data from the specified url and perfom any parsing
640642
641643
:param str url: The URL to fetch from.

0 commit comments

Comments
 (0)