class documentation
class Section: (source)
Known subclasses: docstring_parser.numpydoc.ExamplesSection, docstring_parser.numpydoc._KVSection, docstring_parser.numpydoc._SphinxSection
Constructor: Section(title, key)
Numpydoc section parser.
| Parameters | |
| title | section title. For most sections, this is a heading like "Parameters" which appears on its own line, underlined by en-dashes ('-') on the following line. |
| key | meta key string. In the parsed DocstringMeta instance this will be the first element of the args attribute list. |
| Method | __init__ |
Undocumented |
| Method | parse |
Parse DocstringMeta objects from the body of this section. |
| Instance Variable | key |
Undocumented |
| Instance Variable | title |
Undocumented |
| Property | title |
Regular expression pattern matching this section's header. |
overridden in
docstring_parser.numpydoc.DeprecationSection, docstring_parser.numpydoc.ExamplesSection, docstring_parser.numpydoc._KVSectionParse DocstringMeta objects from the body of this section.
| Parameters | |
text:str | section body text. Should be cleaned with inspect.cleandoc before parsing. |
| Returns | |
T.Iterable[ | Undocumented |
overridden in
docstring_parser.numpydoc._SphinxSectionRegular expression pattern matching this section's header.
This pattern will match this instance's title attribute in an anonymous group.