Method
__init__
(self, docstring, config={})
Source from the content-addressed store, hash-verified
| 103 | |
| 104 | class 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
Tested by
no test coverage detected