doc/pupdevices: workaround to show class attribute

We are using an older version of Sphinx which does not support
autodoc of inherited class attributes yet. This works
around it by just referencing the EV3 attribute, which does work.
This commit is contained in:
Laurens Valk
2020-06-14 15:39:04 +02:00
parent ecc30c2d92
commit 0779b8df16
+5 -1
View File
@@ -82,8 +82,12 @@ Motors with Rotation Sensors
.. automethod:: pybricks.pupdevices.Motor.track_target
.. autoattribute:: pybricks.pupdevices.Motor.control
.. autoattribute:: pybricks.ev3devices.Motor.control
:annotation:
:noindex:
.. FIXME: above should point to pupdevices but inherited class attributes
do not work yet (https://github.com/sphinx-doc/sphinx/issues/741).
Color and Distance Sensor