diff --git a/pybricks/_common.py b/pybricks/_common.py index 76a84fe..eab574e 100644 --- a/pybricks/_common.py +++ b/pybricks/_common.py @@ -111,7 +111,7 @@ class Motor(): Arguments: stop_type (Stop): Whether to coast, brake, or hold (*Default*: - :class:`Stop.COAST `). + :class:`Stop.COAST <.parameters.Stop>`). """ pass @@ -144,7 +144,7 @@ class Motor(): time (:ref:`time`): Duration of the maneuver. stop_type (Stop): Whether to coast, brake, or hold after coming to a standstill (*Default*: - :class:`Stop.COAST `). + :class:`Stop.COAST <.parameters.Stop>`). wait (bool): Wait for the maneuver to complete before continuing with the rest of the program (*Default*: ``True``). This means that your program waits for the @@ -169,7 +169,7 @@ class Motor(): rotate. stop_type (Stop): Whether to coast, brake, or hold after coming to a standstill (*Default*: - :class:`Stop.COAST `). + :class:`Stop.COAST <.parameters.Stop>`). wait (bool): Wait for the maneuver to complete before continuing with the rest of the program (*Default*: ``True``). This means that your program waits until the motor has @@ -201,7 +201,7 @@ class Motor(): angle. stop_type (Stop): Whether to coast, brake, or hold after coming to a standstill (*Default*: - :class:`Stop.COAST `). + :class:`Stop.COAST <.parameters.Stop>`). wait (bool): Wait for the maneuver to complete before continuing with the rest of the program (*Default*: ``True``). This means that your program waits until the motor @@ -224,7 +224,7 @@ class Motor(): speed (:ref:`speed`): Speed of the motor. stop_type (Stop): Whether to coast, brake, or hold after coming to a standstill (*Default*: - :class:`Stop.COAST `). + :class:`Stop.COAST <.parameters.Stop>`). duty_limit (:ref:`percentage`): Relative torque limit. This limit works just like :meth:`.set_dc_settings`, but in diff --git a/pybricks/ev3devices.py b/pybricks/ev3devices.py index 3ce8cc7..490716c 100644 --- a/pybricks/ev3devices.py +++ b/pybricks/ev3devices.py @@ -70,7 +70,7 @@ class ColorSensor(): :returns: ``Color.BLACK``, ``Color.BLUE``, ``Color.GREEN``, ``Color.YELLOW``, ``Color.RED``, ``Color.WHITE``, ``Color.BROWN`` or ``None``. - :rtype: :class:`Color `, or ``None`` if no color is + :rtype: :class:`Color <.parameters.Color>`, or ``None`` if no color is detected. """ @@ -157,7 +157,7 @@ class InfraredSensor(): channel (int): Channel number of the remote. :returns: List of pressed buttons on the remote on selected channel. - :rtype: List of :class:`Button ` + :rtype: List of :class:`Button <.parameters.Button>` """ pass diff --git a/pybricks/lpf2devices.py b/pybricks/lpf2devices.py index 97dc5be..a54ed0d 100644 --- a/pybricks/lpf2devices.py +++ b/pybricks/lpf2devices.py @@ -35,7 +35,7 @@ class ColorDistanceSensor(): :returns: ``Color.BLACK``, ``Color.BLUE``, ``Color.GREEN``, ``Color.YELLOW``, ``Color.RED``, ``Color.WHITE``, or ``None``. - :rtype: :class:`Color `, or ``None`` if no color is + :rtype: :class:`Color <.parameters.Color>`, or ``None`` if no color is detected. """ pass diff --git a/pybricks/robotics.py b/pybricks/robotics.py index e008106..8ec40d9 100644 --- a/pybricks/robotics.py +++ b/pybricks/robotics.py @@ -48,6 +48,6 @@ class DriveBase(): Arguments: stop_type (Stop): Whether to coast, brake, or hold (*Default*: - :class:`Stop.COAST `). + :class:`Stop.COAST <.parameters.Stop>`). """ pass