Skip to content

Commit 3a27672

Browse files
committed
updated annotations after pylint / black
1 parent 153d0cf commit 3a27672

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

adafruit_dymoscale.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import typing
2424
except ImportError:
2525
pass
26-
26+
2727
import time
2828
from pulseio import PulseIn
2929
from micropython import const
@@ -47,7 +47,12 @@ class ScaleReading:
4747
class DYMOScale:
4848
"""Interface to a DYMO postal scale."""
4949

50-
def __init__(self, data_pin: pulseio.PulseIn, units_pin: digitalio.DigitalInOut, timeout: double =1.0) -> None:
50+
def __init__(
51+
self,
52+
data_pin: pulseio.PulseIn,
53+
units_pin: digitalio.DigitalInOut,
54+
timeout: double = 1.0,
55+
) -> None:
5156
"""Sets up a DYMO postal scale.
5257
:param ~pulseio.PulseIn data_pin: The data pin from the Dymo scale.
5358
:param ~digitalio.DigitalInOut units_pin: The grams/oz button from the Dymo scale.
@@ -68,7 +73,7 @@ def weight(self) -> ScaleReading:
6873
reading.units = GRAMS
6974
return reading
7075

71-
def toggle_unit_button(self, switch_units: bool =False) -> None:
76+
def toggle_unit_button(self, switch_units: bool = False) -> None:
7277
"""Toggles the unit button on the dymo.
7378
:param bool switch_units: Simulates pressing the units button.
7479
"""

0 commit comments

Comments
 (0)