def _post_visit(self) -> None: for node, count in self._methods.items(): if count > self.options.max_methods: self.add_violation( TooManyMethodsViolation( node, text=str(count), baseline=self.options.max_methods, ), )
def _post_visit(self) -> None: for node, count in self._methods.items(): if count > self.options.max_methods: self.add_violation(TooManyMethodsViolation(text=node.name))