class documentation

class ConsiderUsingWithStack(NamedTuple): (source)

View In Hierarchy

Stack for objects that may potentially trigger a R1732 message if they are not used in a ``with`` block later on.

Method __iter__ Undocumented
Method clear_all Convenience method to clear all stacks.
Method get_stack_for_frame Get the stack corresponding to the scope of the given frame.
Class Variable class_scope Undocumented
Class Variable function_scope Undocumented
Class Variable module_scope Undocumented
def __iter__(self) -> Iterator[dict[str, nodes.NodeNG]]: (source)

Undocumented

def clear_all(self): (source)

Convenience method to clear all stacks.

def get_stack_for_frame(self, frame: (nodes.FunctionDef|nodes.ClassDef)|nodes.Module) -> dict[str, nodes.NodeNG]: (source)

Get the stack corresponding to the scope of the given frame.

Undocumented

function_scope: dict[str, nodes.NodeNG] = (source)

Undocumented

Undocumented