Skip to content

Commit

Permalink
2/3 Resolve mypy type checking issues
Browse files Browse the repository at this point in the history
Testing done:

```
poetry run mypy src/pygptcourse
Success: no issues found in 4 source files
```

Addresses #29

Based on ChatGPT analysis this is the second commit that addresses
linting issues. This has only the fixes required for mypy.
  • Loading branch information
gshiva committed Dec 11, 2023
1 parent 74cc3b2 commit 3e9cecb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pygptcourse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import cv2

import face_recognition
import face_recognition # type: ignore

from pygptcourse.tshirt_launcher import Launcher
from pygptcourse.tshirt_launcher import RIGHT, LEFT, STOP, FIRE, DOWN, UP
Expand Down
2 changes: 1 addition & 1 deletion src/pygptcourse/tracker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cv2
import face_recognition
import face_recognition # type: ignore

# Set the total time for moving from left to right and top to bottom
TOTAL_TIME_LR = 26
Expand Down
8 changes: 4 additions & 4 deletions src/pygptcourse/tshirt_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import time
import threading

import usb.core
import usb.util
import usb.core # type: ignore
import usb.util # type: ignore

VENDOR = 0x1941
PRODUCT = 0x8021
Expand Down Expand Up @@ -212,8 +212,8 @@ def close(self):
try:
s = input('{}>> '.format(prompt)).strip()
print(f"Received command {s}")
cmd, delay = s.split()
delay = float(delay)
cmd, delay_str = s.split()
delay = float(delay_str)
except EOFError:
cmd = 'quit'
except ValueError:
Expand Down

0 comments on commit 3e9cecb

Please sign in to comment.