Path 1: 6133 calls (1.0)

FunctionDef (3452) ClassDef (1519) Module (1108) AsyncFunctionDef (54)

None (6133)

1def _check_docstring(
2        self,
3        node: nodes.FunctionDef
4        | nodes.AsyncFunctionDef
5        | nodes.ClassDef
6        | nodes.Module,
7    ) -> None:
8        """Check if the node has any spelling errors."""
9        if not self.initialized:
10            return
11        if not node.doc_node:
12            return
13        start_line = node.lineno + 1
14        # Go through lines of docstring
15        for idx, line in enumerate(node.doc_node.value.splitlines()):
16            self._check_spelling("wrong-spelling-in-docstring", line, start_line + idx)