PhotonVision / photonvision

PhotonVision is the free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition.
https://photonvision.org
GNU General Public License v3.0
264 stars 180 forks source link

photonlibpy usage is not type checkable #1210

Open auscompgeek opened 7 months ago

auscompgeek commented 7 months ago

Describe the bug

It isn't possible to type check code that imports photonlibpy.

To Reproduce

echo "from photonlibpy.photonCamera import PhotonCamera" > test.py
python -m mypy test.py

Screenshots / Videos

test.py:1: error: Skipping analyzing "photonlibpy.photonCamera": module is installed, but missing library stubs or py.typed marker  [import-untyped]
test.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

Platform:

Additional context

This is probably blocked by #1145.