diff --git a/pybricks/ev3devices.py b/pybricks/ev3devices.py index be089d1..980947d 100644 --- a/pybricks/ev3devices.py +++ b/pybricks/ev3devices.py @@ -76,10 +76,9 @@ class ColorSensor: """Measure the reflection of a surface using a red, green, and then a blue light. - Returns: - tuple of three :ref:`percentages `: Reflection for red, - green, and blue light, each ranging from 0.0 (no reflection) to - 100.0 (high reflection). + :returns: Tuple of reflections for red, green, and blue light, each + ranging from 0.0 (no reflection) to 100.0 (high reflection). + :rtype: (:ref:`percentage`, :ref:`percentage`, :ref:`percentage`) """ pass diff --git a/pybricks/nxtdevices.py b/pybricks/nxtdevices.py index f401a12..ccef0c9 100644 --- a/pybricks/nxtdevices.py +++ b/pybricks/nxtdevices.py @@ -111,10 +111,9 @@ class ColorSensor: """Measure the reflection of a surface using a red, green, and then a blue light. - Returns: - tuple of three :ref:`percentages `: Reflection for red, - green, and blue light, each ranging from 0.0 (no reflection) to - 100.0 (high reflection). + :returns: Tuple of reflections for red, green, and blue light, each + ranging from 0.0 (no reflection) to 100.0 (high reflection). + :rtype: (:ref:`percentage`, :ref:`percentage`, :ref:`percentage`) """ pass diff --git a/pybricks/pupdevices.py b/pybricks/pupdevices.py index 17ec93d..8ace5e0 100644 --- a/pybricks/pupdevices.py +++ b/pybricks/pupdevices.py @@ -85,10 +85,9 @@ class ColorDistanceSensor: """Measure the reflection of a surface using a red, green, and then a blue light. - Returns: - tuple of three :ref:`percentages `: Reflection for red, - green, and blue light, each ranging from 0.0 (no reflection) to - 100.0 (high reflection). + :returns: Tuple of reflections for red, green, and blue light, each + ranging from 0.0 (no reflection) to 100.0 (high reflection). + :rtype: (:ref:`percentage`, :ref:`percentage`, :ref:`percentage`) """ pass