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