MattIPv4 / PyDMXControl

A Python 3 module to control DMX using OpenDMX or uDMX - Featuring fixture profiles, built-in effects and a web control panel.
https://pypi.org/project/PyDMXControl/
GNU General Public License v3.0
121 stars 23 forks source link

TypeError in web/_routes.py #46

Open drewp opened 1 year ago

drewp commented 1 year ago

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 thatget_color() can return None, but to_hex can't take None.