fixes for format and pylint

This commit is contained in:
foamyguy 2024-07-15 11:58:56 -05:00
parent 6eb0c372d3
commit a1ed9857b1
3 changed files with 6 additions and 4 deletions

View file

@ -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,

View file

@ -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.

View file

@ -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.