Path 1: 3140 calls (0.91)

FunctionDef (3140)

1@utils.only_required_for_messages(
2        "method-cache-max-size-none",
3        "singledispatch-method",
4        "singledispatchmethod-function",
5    )
6    def visit_functiondef(self, node: nodes.FunctionDef) -> None:
7        if node.decorators and isinstance(node.parent, nodes.ClassDef):
8            self._check_lru_cache_decorators(node)
9            self._check_dispatch_decorators(node)
            

Path 2: 327 calls (0.09)

FunctionDef (327)

1@utils.only_required_for_messages(
2        "method-cache-max-size-none",
3        "singledispatch-method",
4        "singledispatchmethod-function",
5    )
6    def visit_functiondef(self, node: nodes.FunctionDef) -> None:
7        if node.decorators and isinstance(node.parent, nodes.ClassDef):
8            self._check_lru_cache_decorators(node)
9            self._check_dispatch_decorators(node)