(exception: Exception)
| 59 | |
| 60 | |
| 61 | def _ignore_error(exception: Exception) -> bool: |
| 62 | return ( |
| 63 | getattr(exception, "errno", None) in _IGNORED_ERRORS |
| 64 | or getattr(exception, "winerror", None) in _IGNORED_WINERRORS |
| 65 | ) |
| 66 | |
| 67 | |
| 68 | def get_lock_path(path: _AnyPurePath) -> _AnyPurePath: |