Skip to content

Commit da8074c

Browse files
committed
Fix return typing of List to be generic
1 parent f27245c commit da8074c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_rplidar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from collections import namedtuple
3535

3636
try:
37-
from typing import Tuple, Dict, Any, Optional, List, Iterator
37+
from typing import Tuple, Dict, Any, Optional, List, Iterator, Union
3838
from busio import UART
3939
from digitalio import DigitalInOut
4040
except ImportError:
@@ -512,7 +512,7 @@ def iter_measurments(
512512

513513
def iter_scans(
514514
self, max_buf_meas: int = 500, min_len: int = 5
515-
) -> List[int, float, float]:
515+
) -> List[Union[int, float]]:
516516
"""Iterate over scans. Note that consumer must be fast enough,
517517
otherwise data will be accumulated inside buffer and consumer will get
518518
data with increasing lag.

0 commit comments

Comments
 (0)