Skip to content

Commit b80bd5b

Browse files
committed
Add Missing Type Annotations
1 parent 6e56a6f commit b80bd5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_us100.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def distance(self) -> Optional[float]:
5151
for the sensor to handle. In my experience, the sensor can not detect
5252
objects over 460 cm away.
5353
:return: Distance in centimeters.
54-
:rtype: float
54+
:rtype: float or None
5555
"""
5656
for _ in range(2): # Attempt to read twice.
5757
self._uart.write(bytes([0x55]))

0 commit comments

Comments
 (0)