Skip to content

Commit de254d0

Browse files
committed
Resolve linting errors
1 parent 7e936dd commit de254d0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

adafruit_pybadger.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,14 @@ def __init__(self, i2c=None, *, pixels_brightness=1.0):
141141
self._sine_wave = None
142142
self._sine_wave_sample = None
143143

144-
def _create_label_group(self, text, font, scale, height_adjustment, color=0xFFFFFF, width_adjustment=2, line_spacing=0.75):
145-
"""Create a label group with the given text, font, scale, and spacing."""
144+
# pylint: disable=too-many-arguments
145+
def _create_label_group(self, text, font,
146+
scale, height_adjustment,
147+
color=0xFFFFFF, width_adjustment=2, line_spacing=0.75):
148+
"""Create a label group with the given text, font, and spacing"""
146149
# If the given font is a string, treat it as a file path and try to load it
147150
if isinstance(font, str):
148-
font = load_font(font)
151+
font = load_font(font, text)
149152

150153
group = displayio.Group(scale=scale)
151154
label = Label(font, text=text, line_spacing=line_spacing)

0 commit comments

Comments
 (0)