Function | _filter_stmts |
Filter the given list of statements to remove ignorable statements. |
Function | _get_filtered_node_statements |
Undocumented |
Function | _get_if_statement_ancestor |
Return the first parent node that is an If node (or None) |
Function | _is_from_decorator |
Return True if the given node is the child of a decorator |
Filter the given list of statements to remove ignorable statements.
If base_node is not a frame itself and the name is found in the inner frame locals, statements will be filtered to remove ignorable statements according to base_node's location.
Parameters | |
base_node:nodes.NodeNG | Undocumented |
stmts:list(nodes.NodeNG) | The statements to filter. |
frame:nodes.NodeNG | The frame that all of the given statements belong to. |
offset:int | The line offset to filter statements up to. |
Returns | |
list(nodes.NodeNG) | The filtered statements. |
Undocumented
Parameters | |
base_node:nodes.NodeNG | Undocumented |
stmt_nodes:List[ | Undocumented |
Returns | |
List[ | Undocumented |
Parameters | |
node:nodes.NodeNG | Undocumented |
Returns | |
Optional[ | Undocumented |