Skip to content

Commit 9f7aa00

Browse files
committed
fixed annotations issues
1 parent 0c3a5ec commit 9f7aa00

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

adafruit_thermistor.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
import math
4141
import analogio
42+
import microcontroller
4243

4344
__version__ = "0.0.0-auto.0"
4445
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Thermistor.git"
@@ -85,13 +86,13 @@ class Thermistor:
8586

8687
def __init__(
8788
self,
88-
pin,
89-
series_resistor,
90-
nominal_resistance,
91-
nominal_temperature,
92-
b_coefficient,
89+
pin: microcontroller.pin,
90+
series_resistor: int,
91+
nominal_resistance: int,
92+
nominal_temperature: int,
93+
b_coefficient: int,
9394
*,
94-
high_side=True
95+
high_side: bool = True
9596
):
9697
# pylint: disable=too-many-arguments
9798
self.pin = analogio.AnalogIn(pin)

0 commit comments

Comments
 (0)