Utility methods for docstring checking.
Class |
|
No class docstring; 0/1 instance variable, 1/2 class variable, 1/13 method documented |
Class |
|
Epytext is similar to Sphinx. |
Class |
|
No class docstring; 0/13 class variable, 1/12 method, 0/2 static method documented |
Class |
|
No class docstring; 0/10 class variable, 1/1 method, 0/2 static method documented |
Class |
|
No class docstring; 0/15 class variable, 1/8 method documented |
Function | docstringify |
Undocumented |
Function | get |
Get the property node for the given setter node. |
Function | get |
Get the name of the property that the given node is a setter for. |
Function | possible |
Gets all the possible raised exception types for the given raise node. |
Function | returns |
Check if a return node returns a value other than None. |
Function | space |
The number of leading spaces in a string. |
Constant | DOCSTRING |
A map of the name of the docstring type to its class. |
Function | _get |
Undocumented |
Function | _split |
Undocumented |
nodes.Const|None
, default_type: str
= 'default') -> Docstring
:
(source)
¶
Undocumented
Get the property node for the given setter node. :param node: The node to get the property for. :type node: nodes.FunctionDef :rtype: nodes.FunctionDef or None :returns: The node relating to the property of the given setter node, or None if one could not be found.
Get the name of the property that the given node is a setter for. :param node: The node to get the property name for. :type node: str :rtype: str or None :returns: The name of the property that the node is a setter for, or None if one could not be found.
Gets all the possible raised exception types for the given raise node. .. note:: Caught exception types are ignored. :param node: The raise node to find exception types for. :returns: A list of exception types possibly raised by :param:`node`.
Check if a return node returns a value other than None. :param return_node: The return node to check. :type return_node: astroid.Return :rtype: bool :return: True if the return node returns a value other than None, False otherwise.
The number of leading spaces in a string. :param str s: input string :rtype: int :return: number of leading spaces
A map of the name of the docstring type to its class. :type: dict(str, type)
Value |
|