Skip to content

Commit a6e68f3

Browse files
committed
Remove variable types
1 parent f88349e commit a6e68f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adafruit_dht.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ def __init__(self, dht11: bool, pin: Pin, trig_wait: int, use_pulseio: bool):
6565
self._dht11 = dht11
6666
self._pin = pin
6767
self._trig_wait = trig_wait
68-
self._last_called: float = 0
69-
self._humidity: Union[int, float, None] = None
70-
self._temperature: Union[int, float, None] = None
68+
self._last_called = 0
69+
self._humidity = None
70+
self._temperature = None
7171
self._use_pulseio = use_pulseio
7272
if "Linux" not in uname() and not self._use_pulseio:
7373
raise Exception("Bitbanging is not supported when using CircuitPython.")
@@ -203,8 +203,8 @@ def measure(self) -> None:
203203
):
204204
self._last_called = time.monotonic()
205205

206-
new_temperature: Union[int, float] = 0
207-
new_humidity: Union[int, float] = 0
206+
new_temperature = 0
207+
new_humidity = 0
208208

209209
if self._use_pulseio:
210210
pulses = self._get_pulses_pulseio()

0 commit comments

Comments
 (0)