PyDMXControl icon indicating copy to clipboard operation
PyDMXControl copied to clipboard

TypeError in web/_routes.py

Open drewp opened this issue 1 year ago • 0 comments

web/_routes.py contains Colors.to_hex(this_fixture.get_color()) a few times, and there's no type known for this_fixture (in pyright, at least).

If that type were annotated, you'd get an early warning that get_color() can return None, but to_hex can't take None.

drewp avatar May 17 '23 21:05 drewp