From 121a2e5105e9cca2425ae934bf895507a48fc2b4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 21:10:10 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/codespell-project/codespell: v2.4.2 → v2.4.3](https://github.com/codespell-project/codespell/compare/v2.4.2...v2.4.3) - [github.com/astral-sh/ruff-pre-commit: v0.15.12 → v0.16.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.12...v0.16.0) - [github.com/pre-commit/mirrors-mypy: v2.0.0 → v2.3.0](https://github.com/pre-commit/mirrors-mypy/compare/v2.0.0...v2.3.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index be4b6e07..d98f54f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell - repo: https://github.com/adamchainz/blacken-docs @@ -13,7 +13,7 @@ repos: hooks: - id: check-yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.12 + rev: v0.16.0 hooks: - id: ruff-check args: [ --fix ] @@ -26,7 +26,7 @@ repos: args: ["--ignore", "D001"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v2.0.0' + rev: 'v2.3.0' hooks: - id: mypy additional_dependencies: From d670250a72c93a16a4766f65649c09a4003e794a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 21:10:23 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/execnet/rsync.py | 4 ++-- src/execnet/script/__init__.py | 1 - src/execnet/xspec.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/execnet/rsync.py b/src/execnet/rsync.py index f92bc37a..67522bfe 100644 --- a/src/execnet/rsync.py +++ b/src/execnet/rsync.py @@ -39,12 +39,12 @@ def __init__(self, sourcedir, callback=None, verbose: bool = True) -> None: tuple[ Channel, ( - None - | tuple[Literal["send"], tuple[list[str], bytes]] + tuple[Literal["send"], tuple[list[str], bytes]] | tuple[Literal["list_done"], None] | tuple[Literal["ack"], str] | tuple[Literal["links"], None] | tuple[Literal["done"], None] + | None ), ] ] = Queue() diff --git a/src/execnet/script/__init__.py b/src/execnet/script/__init__.py index 792d6005..e69de29b 100644 --- a/src/execnet/script/__init__.py +++ b/src/execnet/script/__init__.py @@ -1 +0,0 @@ -# diff --git a/src/execnet/xspec.py b/src/execnet/xspec.py index 0559ed8c..1078b827 100644 --- a/src/execnet/xspec.py +++ b/src/execnet/xspec.py @@ -49,7 +49,7 @@ def __init__(self, string: str) -> None: else: setattr(self, key, value) - def __getattr__(self, name: str) -> None | bool | str: + def __getattr__(self, name: str) -> bool | str | None: if name[0] == "_": raise AttributeError(name) return None