Method: pylint.extensions._check_docs_utils.SphinxDocstring.matching_sections
Calls: 957, Exceptions: 0, Paths: 1Back
Path 1: 957 calls (1.0)
0 (769) 1 (136) 2 (33) 3 (19)
1def matching_sections(self) -> int:
2        """Returns the number of matching docstring sections."""
3        return sum(
4            bool(i)
5            for i in (
6                self.re_param_in_docstring.search(self.doc),
7                self.re_raise_in_docstring.search(self.doc),
8                self.re_rtype_in_docstring.search(self.doc),
9                self.re_returns_in_docstring.search(self.doc),
10                self.re_property_type_in_docstring.search(self.doc),
11            )
12        )