Path 1: 981 calls (1.0)

0 (657) 1 (266) 2 (58)

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_section.search(self.doc),
7                self.re_raise_section.search(self.doc),
8                self.re_returns_section.search(self.doc),
9                self.re_yields_section.search(self.doc),
10                self.re_property_returns_line.search(self._first_line()),
11            )
12        )