diff --git a/adafruit_motor/servo.py b/adafruit_motor/servo.py index 2412efd..21056ca 100644 --- a/adafruit_motor/servo.py +++ b/adafruit_motor/servo.py @@ -113,7 +113,10 @@ def __init__( ) -> None: super().__init__(pwm_out, min_pulse=min_pulse, max_pulse=max_pulse) self.actuation_range = actuation_range - """The physical range of motion of the servo in degrees.""" + """The physical range of motion of the servo in degrees. + + :type: float + """ self._pwm = pwm_out @property diff --git a/docs/conf.py b/docs/conf.py index f936480..1b54210 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -85,18 +85,6 @@ # If this is True, todo emits a warning for each TODO entries. The default is False. todo_emit_warnings = True -# Avoid an `= None` on instance attributes with their own doc strings. -# Workaround from here: https://github.com/sphinx-doc/sphinx/issues/2044#issuecomment-285888160 -# -from sphinx.ext.autodoc import ClassLevelDocumenter, InstanceAttributeDocumenter - - -def iad_add_directive_header(self, sig): - ClassLevelDocumenter.add_directive_header(self, sig) - - -InstanceAttributeDocumenter.add_directive_header = iad_add_directive_header - # -- Options for HTML output ---------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for