diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5b9690d..18b8589 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.2" + rev: "v0.5.4" hooks: - id: ruff args: ["--fix"] @@ -23,7 +23,7 @@ repos: language: python additional_dependencies: [pygments, restructuredtext_lint] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.1 + rev: v1.11.0 hooks: - id: mypy files: ^(src/|testing/) diff --git a/src/xdist/looponfail.py b/src/xdist/looponfail.py index 4826c70..aa8852f 100644 --- a/src/xdist/looponfail.py +++ b/src/xdist/looponfail.py @@ -166,7 +166,7 @@ def init_worker_session( import sys outchannel = channel.gateway.newchannel() - sys.stdout = sys.stderr = outchannel.makefile("w") # type: ignore[assignment] + sys.stdout = sys.stderr = outchannel.makefile("w") channel.send(outchannel) # prune sys.path to not contain relative paths newpaths = []