Skip to content

Commit e6fa81d

Browse files
committed
add "other attributes"
1 parent 0d8b980 commit e6fa81d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,16 @@ def parse_attributes_section(self, section):
125125
NumpyDocstring._parse_attributes_section = parse_attributes_section
126126

127127

128+
def parse_other_attributes_section(self, section):
129+
return self._format_fields("Other Attributes", self._consume_fields())
130+
131+
132+
NumpyDocstring._parse_other_attributes_section = parse_other_attributes_section
133+
134+
128135
def patched_parse(self):
129136
self._sections["attributes"] = self._parse_attributes_section
137+
self._sections["other attributes"] = self._parse_other_attributes_section
130138
self._unpatched_parse()
131139

132140

0 commit comments

Comments
 (0)