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

Method __init__

doc/sphinxext/docscrape.py:105–128  ·  view source on GitHub ↗
(self, docstring, config={})

Source from the content-addressed store, hash-verified

103
104class NumpyDocString:
105 def __init__(self, docstring, config={}):
106 docstring = textwrap.dedent(docstring).split('\n')
107
108 self._doc = Reader(docstring)
109 self._parsed_data = {
110 'Signature': '',
111 'Summary': [''],
112 'Extended Summary': [],
113 'Parameters': [],
114 'Returns': [],
115 'Raises': [],
116 'Warns': [],
117 'Other Parameters': [],
118 'Attributes': [],
119 'Methods': [],
120 'See Also': [],
121 'Notes': [],
122 'Warnings': [],
123 'References': '',
124 'Examples': '',
125 'index': {}
126 }
127
128 self._parse()
129
130 def __getitem__(self,key):
131 return self._parsed_data[key]

Callers

nothing calls this directly

Calls 2

_parseMethod · 0.95
ReaderClass · 0.85

Tested by

no test coverage detected