MCPcopy Create free account
hub / github.com/cvxpy/cvxpy / _parse

Method _parse

doc/sphinxext/docscrape.py:298–313  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

296 self['Extended Summary'] = self._read_to_next_section()
297
298 def _parse(self):
299 self._doc.reset()
300 self._parse_summary()
301
302 for (section,content) in self._read_sections():
303 if not section.startswith('..'):
304 section = ' '.join([s.capitalize() for s in section.split(' ')])
305 if section in ('Parameters', 'Returns', 'Raises', 'Warns',
306 'Other Parameters', 'Attributes', 'Methods'):
307 self[section] = self._parse_param_list(content)
308 elif section.startswith('.. index::'):
309 self['index'] = self._parse_index(section, content)
310 elif section == 'See Also':
311 self['See Also'] = self._parse_see_also(content)
312 else:
313 self[section] = content
314
315 # string conversion routines
316

Callers 1

__init__Method · 0.95

Calls 6

_parse_summaryMethod · 0.95
_read_sectionsMethod · 0.95
_parse_param_listMethod · 0.95
_parse_indexMethod · 0.95
_parse_see_alsoMethod · 0.95
resetMethod · 0.45

Tested by

no test coverage detected