Skip to content

Commit f56f765

Browse files
committed
Fix incomplete cleanup in autodoc_enhancements.py
1 parent 0aa9864 commit f56f765

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

sphinx_automodapi/autodoc_enhancements.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@
33
"""
44
import dataclasses
55

6-
from sphinx.ext.autodoc import AttributeDocumenter
7-
86
__all__ = []
97

10-
class_types = (type,)
11-
MethodDescriptorType = type(type.__subclasses__)
12-
138

149
# See
1510
# https://github.com/astropy/astropy-helpers/issues/116#issuecomment-71254836
@@ -71,18 +66,7 @@ def type_object_attrgetter(obj, attr, *defargs):
7166

7267

7368
def setup(app):
74-
# Must have the autodoc extension set up first so we can override it
75-
app.setup_extension('sphinx.ext.autodoc')
76-
7769
app.add_autodoc_attrgetter(type, type_object_attrgetter)
7870

79-
suppress_warnings_orig = app.config.suppress_warnings[:]
80-
if 'app.add_directive' not in app.config.suppress_warnings:
81-
app.config.suppress_warnings.append('app.add_directive')
82-
try:
83-
app.add_autodocumenter(AttributeDocumenter)
84-
finally:
85-
app.config.suppress_warnings = suppress_warnings_orig
86-
8771
return {'parallel_read_safe': True,
8872
'parallel_write_safe': True}

0 commit comments

Comments
 (0)