David Vo

Results 309 comments of David Vo

This PR is still not formatted with `black`. I would highly recommend setting up black in your IDE. The file paths still need to be fixed to lowercase.

> Within drivesubsystems.py and swervemodule.py I can't import constants. Why not? It should work fine.

It is likely that the camera you are using does not support the MJPEG format, which CSCore uses by default. Please check the video modes the camera supports (which are...

- [VideoSource.setPixelFormat](https://robotpy.readthedocs.io/projects/cscore/en/stable/objects.html#cscore.VideoSource.setPixelFormat) - [VideoSource.setVideoMode](https://robotpy.readthedocs.io/projects/cscore/en/stable/objects.html#cscore.VideoSource.setVideoMode)

I'm tempted to call this an upstream documentation bug.

Pretty sure it does. `startAutomaticCapture` calls `addCamera` which stores a reference in the `self._sources` dict.

It should also be in `typing_extensions`.

Now that the sim HAL defaults to the DS disconnected, the tests now only run on the invalid alliance! (It previously defaulted to red 1.)

mypy took upwards of half a minute to run on my team's codebase last season in GitHub Actions. pyright was a lot faster, but also a fair bit more strict...

Note that pyflakes will emit warnings such as these too: ``` tests/pyfrc_test.py:6:1: 'from pyfrc.tests import *' used; unable to detect undefined names tests/pyfrc_test.py:6:1: 'pyfrc.tests.*' imported but unused ``` `flake8` assigns...