From f2b160979d888fcd186f1cd1b9a3293e8f6d451f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 16:46:42 +0000 Subject: [PATCH 1/2] chore(pre-commit.ci): pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/commitizen-tools/commitizen: v4.13.10 → v4.15.1](https://github.com/commitizen-tools/commitizen/compare/v4.13.10...v4.15.1) - [github.com/pre-commit/mirrors-mypy: v1.20.2 → v2.0.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.20.2...v2.0.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7bc839b8..706f4d2e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ ci: repos: - repo: https://github.com/commitizen-tools/commitizen - rev: v4.13.10 + rev: v4.15.1 hooks: - id: commitizen stages: [commit-msg] @@ -54,7 +54,7 @@ repos: hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.20.2 + rev: v2.0.0 hooks: - id: mypy additional_dependencies: [ifaddr] From bc5e1878a1856f0dc3ecc7b97f7f40574740e1e7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 15 May 2026 11:34:51 -0700 Subject: [PATCH 2/2] chore: replace legacy type comment in test_exceptions mypy 2.0 (pulled in by the pre-commit autoupdate) rejects the old `browser = None # type: Zeroconf` form because None is not assignable to Zeroconf. Switch to a class-level annotation without an initializer; setUpClass assigns the real value before any test runs. --- tests/test_exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index ab181db1..94a407c1 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -24,7 +24,7 @@ def teardown_module(): class Exceptions(unittest.TestCase): - browser = None # type: Zeroconf + browser: Zeroconf @classmethod def setUpClass(cls):