Skip to content

Commit 0e1a961

Browse files
committed
updated annotations in error
1 parent 3a27672 commit 0e1a961

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adafruit_dymoscale.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"""
2222
try:
2323
import typing
24+
import microcontroller
2425
except ImportError:
2526
pass
2627

@@ -49,9 +50,9 @@ class DYMOScale:
4950

5051
def __init__(
5152
self,
52-
data_pin: pulseio.PulseIn,
53-
units_pin: digitalio.DigitalInOut,
54-
timeout: double = 1.0,
53+
data_pin: microcontroller.pin,
54+
units_pin: microcontroller.pin,
55+
timeout: float = 1.0,
5556
) -> None:
5657
"""Sets up a DYMO postal scale.
5758
:param ~pulseio.PulseIn data_pin: The data pin from the Dymo scale.

0 commit comments

Comments
 (0)