Skip to content

Commit 784e935

Browse files
committed
Remove depreciated use of InstanceAttributeDocumenter
1 parent 58802ba commit 784e935

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

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)