class documentation
class TypeDocstring: (source)
Constructor: TypeDocstring(annotation, warns_on_unknown_tokens)
Convert natural language type strings to reStructuredText.
Syntax is based on numpydoc type specification with additionnal recognition of PEP 484-like type annotations (with parentheses or square brackets characters).
| Type string | Output |
|---|---|
| List[str] or list(bytes), optional | List[str] or list(bytes), optional |
| {"html", "json", "xml"}, optional | {"html", "json", "xml"}, optional |
| list of int or float or None, default: None | list of int or float or None, default: None |
| `complicated string` or `strIO <twisted.python.compat.NativeStringIO>` | complicated string or strIO |
| Method | __init__ |
Undocumented |
| Method | __str__ |
No summary |
| Instance Variable | warnings |
Undocumented |
| Static Method | _convert |
Undocumented |
| Class Variable | _ast |
Undocumented |
| Class Variable | _ast |
Undocumented |
| Class Variable | _default |
Undocumented |
| Class Variable | _natural |
Undocumented |
| Class Variable | _natural |
Undocumented |
| Class Variable | _token |
Undocumented |
| Instance Variable | _tokens |
Undocumented |