Return True if the exception is an instance of exc. Consider using ``isinstance(excinfo.value, exc)`` instead.
(
self, exc: Union[Type[BaseException], Tuple[Type[BaseException], ...]]
)
| 591 | return text |
| 592 | |
| 593 | def errisinstance( |
| 594 | self, exc: Union[Type[BaseException], Tuple[Type[BaseException], ...]] |
| 595 | ) -> bool: |
| 596 | """Return True if the exception is an instance of exc. |
| 597 | |
| 598 | Consider using ``isinstance(excinfo.value, exc)`` instead. |
| 599 | """ |
| 600 | return isinstance(self.value, exc) |
| 601 | |
| 602 | def _getreprcrash(self) -> "ReprFileLocation": |
| 603 | exconly = self.exconly(tryshort=True) |
no outgoing calls