Skip to content

Commit a46021a

Browse files
committed
fixing pylint errors
1 parent 224bf57 commit a46021a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_gps.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ class GPS:
225225
GPS modules to read latitude, longitude, and more.
226226
"""
227227

228+
# lint warning about too many statements disabled
229+
# pylint: disable-msg=R0915
228230
def __init__(self, uart: UART, debug: bool = False) -> None:
229231
self._uart = uart
230232
# Initialize null starting values for GPS attributes.
@@ -700,8 +702,7 @@ def _parse_gsv(self, talker: bytes, data: List[str]) -> bool:
700702
# been seen for 30 seconds
701703
timestamp = time.monotonic()
702704
old = []
703-
for i in self.sats:
704-
sat = self.sats[i]
705+
for sat in self.sats.items():
705706
if (timestamp - sat[4]) > 30:
706707
old.append(i)
707708
for i in old:

0 commit comments

Comments
 (0)