Method: pylint.checkers.exceptions._builtin_exceptions
Calls: 1017, Exceptions: 0, Paths: 1Back
Path 1: 1017 calls (1.0)
{'RecursionError', 'KeyError', 'NameError', 'UserWarning', 'BaseException', 'FileExistsError', 'KeyboardInterrupt', 'FloatingPointError', 'OverflowErr...
1def _builtin_exceptions() -> set[str]:
2 def predicate(obj: Any) -> bool:
3 return isinstance(obj, type) and issubclass(obj, BaseException)
4
5 members = inspect.getmembers(builtins, predicate)
6 return {exc.__name__ for (_, exc) in members}