(
error: BaseException, message: str, marker: tuple[str, _MarkerValue]
)
| 131 | |
| 132 | |
| 133 | def grouped_errors( |
| 134 | error: BaseException, message: str, marker: tuple[str, _MarkerValue] |
| 135 | ) -> tuple[BaseException, ...] | None: |
| 136 | if not _is_exception_group(error): |
| 137 | return None |
| 138 | return error.exceptions if error.message == message and getattr(error, marker[0], None) is marker[1] else None |
| 139 | |
| 140 | |
| 141 | def _is_exception_group(error: BaseException) -> TypeGuard[BaseExceptionGroup[BaseException]]: |
no test coverage detected