From a1ed9857b11e4648aa4f204d5efd7438efb248d2 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 15 Jul 2024 11:58:56 -0500 Subject: [PATCH] fixes for format and pylint --- adafruit_portalbase/__init__.py | 2 +- adafruit_portalbase/graphics.py | 2 +- adafruit_portalbase/network.py | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/adafruit_portalbase/__init__.py b/adafruit_portalbase/__init__.py index d3f6133..27aa656 100644 --- a/adafruit_portalbase/__init__.py +++ b/adafruit_portalbase/__init__.py @@ -55,7 +55,7 @@ class PortalBase: """ - # pylint: disable=too-many-instance-attributes, too-many-branches, too-many-public-methods + # pylint: disable=too-many-instance-attributes, too-many-branches, too-many-public-methods, too-many-arguments def __init__( self, network, diff --git a/adafruit_portalbase/graphics.py b/adafruit_portalbase/graphics.py index c9bbb0d..2c6114a 100644 --- a/adafruit_portalbase/graphics.py +++ b/adafruit_portalbase/graphics.py @@ -102,7 +102,7 @@ class GraphicsBase: def qrcode( self, qr_data, *, qr_size=1, x=0, y=0, qr_color=0x000000 - ): # pylint: disable=invalid-name + ): # pylint: disable=invalid-name, too-many-arguments """Display a QR code :param qr_data: The data for the QR code, None to remove. diff --git a/adafruit_portalbase/network.py b/adafruit_portalbase/network.py index e9a91a9..71d821c 100755 --- a/adafruit_portalbase/network.py +++ b/adafruit_portalbase/network.py @@ -271,7 +271,9 @@ class NetworkBase: failing or use None to disable. Defaults to 10. """ - reply = self.get_strftime(TIME_SERVICE_FORMAT, location=location, max_attempts=max_attempts) + reply = self.get_strftime( + TIME_SERVICE_FORMAT, location=location, max_attempts=max_attempts + ) if reply: times = reply.split(" ") the_date = times[0] @@ -635,7 +637,7 @@ class NetworkBase: json_path=None, regexp_path=None, timeout=10, - ): + ): # pylint: disable=too-many-arguments """Fetch data from the specified url and perfom any parsing :param str url: The URL to fetch from.