class documentation
class ConsiderUsingWithStack(NamedTuple): (source)
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 |
Convenience method to clear all stacks. |
Method | get |
Get the stack corresponding to the scope of the given frame. |
Class Variable | class |
Undocumented |
Class Variable | function |
Undocumented |
Class Variable | module |
Undocumented |
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.