Path 1: 1519 calls (1.0)

ClassDef (1519)

1@utils.only_required_for_messages("consider-using-with")
2    def leave_classdef(self, _: nodes.ClassDef) -> None:
3        # check for context managers that have been created but not used
4        self._emit_consider_using_with_if_needed(
5            self._consider_using_with_stack.class_scope
6        )
7        self._consider_using_with_stack.class_scope.clear()