Method: pylint.extensions._check_docs_utils.SphinxDocstring.exceptions
Calls: 62, Exceptions: 0, Paths: 2Back
Path 1: 58 calls (0.94)
{'NameError'} (28) {'OSError', 'ValueError', 'NameError', 'RuntimeError'} (10) {'RuntimeError'} (4) {'NameError', 'RuntimeError', 'ValueError', ', ', ...
1def exceptions(self) -> set[str]:
2 types: set[str] = set()
3
4 for match in re.finditer(self.re_raise_in_docstring, self.doc):
5 raise_type = match.group(1)
6 types.update(_split_multiple_exc_types(raise_type))
7
8 return types
Path 2: 4 calls (0.06)
set() (4)
1def exceptions(self) -> set[str]:
2 types: set[str] = set()
3
4 for match in re.finditer(self.re_raise_in_docstring, self.doc):
5 raise_type = match.group(1)
6 types.update(_split_multiple_exc_types(raise_type))
7
8 return types