pybricks.common.ColorLight: Add typing.

Also remove pybricks.common.Light which isn't used anywhere.

pupdevices.Light is a standalone light that does not support animations or blinks, so don't inherit from this nonexistent class.

Also remove the ColorLight.reset() method which was never implemented.
This commit is contained in:
Laurens Valk
2022-05-27 20:00:28 +02:00
parent 2be15fdf4d
commit 2167b9d52d
4 changed files with 39 additions and 74 deletions
+1
View File
@@ -323,6 +323,7 @@ def on_missing_reference(app, env, node, contnode):
"mA",
"ms",
"mNm",
"Hz",
]:
# If they match on raw source, we are dealing with argument types.