Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 77915df

Browse files
authored
Merge pull request #204 from asottile/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents f462ee0 + ab52bb7 commit 77915df

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ repos:
3636
hooks:
3737
- id: flake8
3838
- repo: https://github.com/pre-commit/mirrors-mypy
39-
rev: v1.10.1
39+
rev: v1.11.0
4040
hooks:
4141
- id: mypy
4242
exclude: ^testing/

setuptools_golang.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ def rmtree(path: str) -> None:
2828
def handle_remove_readonly(
2929
func: Callable[..., Any],
3030
path: str,
31-
exc: tuple[type[OSError], OSError, TracebackType],
31+
exc: tuple[type[BaseException], BaseException, TracebackType],
3232
) -> None:
3333
excvalue = exc[1]
3434
if (
35+
isinstance(excvalue, OSError) and
3536
func in (os.rmdir, os.remove, os.unlink) and
3637
excvalue.errno == errno.EACCES
3738
):

0 commit comments

Comments
 (0)