MCPcopy Create free account
hub / github.com/tox-dev/filelock / grouped_errors

Function grouped_errors

src/filelock/_core/_errors.py:133–138  ·  view source on GitHub ↗
(
    error: BaseException, message: str, marker: tuple[str, _MarkerValue]
)

Source from the content-addressed store, hash-verified

131
132
133def 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
141def _is_exception_group(error: BaseException) -> TypeGuard[BaseExceptionGroup[BaseException]]:

Callers 1

_release_in_contextMethod · 0.90

Calls 1

_is_exception_groupFunction · 0.85

Tested by

no test coverage detected