Skip to content

Commit 0b71c90

Browse files
committed
Fix other array type hints
1 parent ebe3bbc commit 0b71c90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_dht.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def exit(self) -> None:
8383
print("De-initializing self.pulse_in")
8484
self.pulse_in.deinit()
8585

86-
def _pulses_to_binary(self, pulses: array.array[int], start: int, stop: int) -> int:
86+
def _pulses_to_binary(self, pulses: array.array, start: int, stop: int) -> int:
8787
"""Takes pulses, a list of transition times, and converts
8888
them to a 1's or 0's. The pulses array contains the transition times.
8989
pulses starts with a low transition time followed by a high transistion time.
@@ -140,7 +140,7 @@ def _get_pulses_pulseio(self) -> array.array:
140140
pulses.append(self.pulse_in.popleft())
141141
return pulses
142142

143-
def _get_pulses_bitbang(self) -> array.array[int]:
143+
def _get_pulses_bitbang(self) -> array.array:
144144
"""_get_pulses implements the communication protcol for
145145
DHT11 and DHT22 type devices. It sends a start signal
146146
of a specific length and listens and measures the

0 commit comments

Comments
 (0)