@@ -62,14 +62,21 @@ def rename_references(app, what, name, obj, options, lines,
62
62
reference_offset [0 ] += len (references )
63
63
64
64
65
+ DEDUPLICATION_TAG = ['..' , ' processed by numpydoc' ]
66
+
67
+
65
68
def mangle_docstrings (app , what , name , obj , options , lines ):
69
+ if lines [- len (DEDUPLICATION_TAG ):] == DEDUPLICATION_TAG :
70
+ return
66
71
67
72
cfg = {'use_plots' : app .config .numpydoc_use_plots ,
68
73
'show_class_members' : app .config .numpydoc_show_class_members ,
69
74
'show_inherited_class_members' :
70
75
app .config .numpydoc_show_inherited_class_members ,
71
76
'class_members_toctree' : app .config .numpydoc_class_members_toctree }
72
77
78
+ print (locals ())
79
+
73
80
u_NL = sixu ('\n ' )
74
81
if what == 'module' :
75
82
# Strip top title
@@ -99,6 +106,8 @@ def mangle_docstrings(app, what, name, obj, options, lines):
99
106
# duplicates
100
107
rename_references (app , what , name , obj , options , lines )
101
108
109
+ lines += DEDUPLICATION_TAG
110
+
102
111
103
112
def mangle_signature (app , what , name , obj , options , sig , retann ):
104
113
# Do not try to inspect classes that don't define `__init__`
0 commit comments