Skip to content

Commit

Permalink
Merge pull request #64 from tekktrik/doc/fix-ci-issue
Browse files Browse the repository at this point in the history
Fix Build CI issue for Sphinx 5.0.0
  • Loading branch information
dhalbert committed May 31, 2022
2 parents adea568 + 99311d0 commit eb39fa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
5 changes: 4 additions & 1 deletion adafruit_motor/servo.py
Expand Up @@ -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
Expand Down
12 changes: 0 additions & 12 deletions docs/conf.py
Expand Up @@ -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
Expand Down

0 comments on commit eb39fa9

Please sign in to comment.