Skip to content

Commit

Permalink
Add type hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheidtmann committed Feb 14, 2025
1 parent c512fdb commit faceeec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/PiFinder/gps_ubx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,8 @@ def _parse_nav_dop(self, data: bytes) -> dict:


if __name__ == "__main__":

# Parse files stored by gpumon's "l<filename>" command.
msg_types = {}
msg_types: dict = {}

async def test(f_path: str):
parser = UBXParser.from_file(file_path=f_path)
Expand All @@ -394,7 +393,6 @@ async def test(f_path: str):
x = msg_types.get(msg_type, 0) + 1
msg_types[msg_type] = x


if len(sys.argv) < 2 or len(sys.argv) > 2:
print("Usage: python gps_ubx_parser.py <file_path>")
sys.exit(1)
Expand Down

0 comments on commit faceeec

Please sign in to comment.