Skip to content

Commit eb39fa9

Browse files
authored
Merge pull request #64 from tekktrik/doc/fix-ci-issue
Fix Build CI issue for Sphinx 5.0.0
2 parents adea568 + 99311d0 commit eb39fa9

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

adafruit_motor/servo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ def __init__(
113113
) -> None:
114114
super().__init__(pwm_out, min_pulse=min_pulse, max_pulse=max_pulse)
115115
self.actuation_range = actuation_range
116-
"""The physical range of motion of the servo in degrees."""
116+
"""The physical range of motion of the servo in degrees.
117+
118+
:type: float
119+
"""
117120
self._pwm = pwm_out
118121

119122
@property

docs/conf.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,6 @@
8585
# If this is True, todo emits a warning for each TODO entries. The default is False.
8686
todo_emit_warnings = True
8787

88-
# Avoid an `= None` on instance attributes with their own doc strings.
89-
# Workaround from here: https://github.com/sphinx-doc/sphinx/issues/2044#issuecomment-285888160
90-
#
91-
from sphinx.ext.autodoc import ClassLevelDocumenter, InstanceAttributeDocumenter
92-
93-
94-
def iad_add_directive_header(self, sig):
95-
ClassLevelDocumenter.add_directive_header(self, sig)
96-
97-
98-
InstanceAttributeDocumenter.add_directive_header = iad_add_directive_header
99-
10088
# -- Options for HTML output ----------------------------------------------
10189

10290
# The theme to use for HTML and HTML Help pages. See the documentation for

0 commit comments

Comments
 (0)