mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user