Method: pylint.extensions._check_docs_utils.GoogleDocstring.exceptions
Calls: 108, Exceptions: 0, Paths: 2Back
Path 1: 106 calls (0.98)
{'RuntimeError'} (36) {'NameError'} (30) {'re.error'} (8) {'NameError', 'RuntimeError'} (8) {'NameError', 'RuntimeError', 'ValueError', ', ', 'OSError...
1def exceptions(self) -> set[str]:
2 types: set[str] = set()
3
4 entries = self._parse_section(self.re_raise_section)
5 for entry in entries:
6 match = self.re_raise_line.match(entry)
7 if not match:
8 continue
9
10 exc_type = match.group(1)
11 exc_desc = match.group(2)
12 if exc_desc:
13 types.update(_split_multiple_exc_types(exc_type))
14
15 return types
Path 2: 2 calls (0.02)
set() (2)
1def exceptions(self) -> set[str]:
2 types: set[str] = set()
3
4 entries = self._parse_section(self.re_raise_section)
5 for entry in entries:
6 match = self.re_raise_line.match(entry)
7 if not match:
8 continue
9
10 exc_type = match.group(1)
11 exc_desc = match.group(2)
12 if exc_desc:
13 types.update(_split_multiple_exc_types(exc_type))
14
15 return types