Skip to content

Commit 6394511

Browse files
committed
updated annotations
1 parent 0e1a961 commit 6394511

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

adafruit_dymoscale.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
* Adafruit CircuitPython firmware for the supported boards:
2020
https://github.com/adafruit/circuitpython/releases
2121
"""
22-
try:
23-
import typing
24-
import microcontroller
25-
except ImportError:
26-
pass
2722

2823
import time
2924
from pulseio import PulseIn
@@ -50,8 +45,8 @@ class DYMOScale:
5045

5146
def __init__(
5247
self,
53-
data_pin: microcontroller.pin,
54-
units_pin: microcontroller.pin,
48+
data_pin: int,
49+
units_pin: int,
5550
timeout: float = 1.0,
5651
) -> None:
5752
"""Sets up a DYMO postal scale.

0 commit comments

Comments
 (0)