From 51e262af694c93d10db6123612e0b89d5362d699 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 20:40:24 +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/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d07115d..81adeef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: - id: trailing-whitespace - id: double-quote-string-fixer - repo: https://github.com/psf/black-pre-commit-mirror - rev: '25.12.0' + rev: '26.1.0' hooks: - id: black args: From f8b77dcef42ec1a8a799d3c09746309f9f8c2c31 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 20:41:56 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ahk/_async/engine.py | 2 +- ahk/_async/transport.py | 1 - tests/_async/test_hotkeys.py | 1 - tests/_sync/test_clipboard.py | 1 - tests/_sync/test_extensions.py | 1 - tests/_sync/test_gui.py | 1 - tests/_sync/test_hotkeys.py | 1 - tests/_sync/test_keys.py | 1 - tests/_sync/test_mouse.py | 1 - 9 files changed, 1 insertion(+), 9 deletions(-) diff --git a/ahk/_async/engine.py b/ahk/_async/engine.py index 4cce435..8bb9c6e 100644 --- a/ahk/_async/engine.py +++ b/ahk/_async/engine.py @@ -289,7 +289,7 @@ async def set_title_match_mode(self, title_match_mode: TitleMatchMode, /) -> Non args = [] if isinstance(title_match_mode, tuple): - (match_mode, match_speed) = title_match_mode + match_mode, match_speed = title_match_mode elif title_match_mode in (1, 2, 3, 'RegEx'): match_mode = title_match_mode match_speed = '' diff --git a/ahk/_async/transport.py b/ahk/_async/transport.py index d3f9b65..06fdf8c 100644 --- a/ahk/_async/transport.py +++ b/ahk/_async/transport.py @@ -49,7 +49,6 @@ from ahk.message import RequestMessage from ahk.message import ResponseMessage - if TYPE_CHECKING: from ahk import AsyncControl from ahk import AsyncWindow diff --git a/tests/_async/test_hotkeys.py b/tests/_async/test_hotkeys.py index 6605666..5d87f71 100644 --- a/tests/_async/test_hotkeys.py +++ b/tests/_async/test_hotkeys.py @@ -8,7 +8,6 @@ from ahk import AsyncAHK from ahk import AsyncWindow - async_sleep = asyncio.sleep # unasync: remove sleep = time.sleep diff --git a/tests/_sync/test_clipboard.py b/tests/_sync/test_clipboard.py index 22ec1e8..fbb305a 100644 --- a/tests/_sync/test_clipboard.py +++ b/tests/_sync/test_clipboard.py @@ -4,7 +4,6 @@ from ahk import AHK - sleep = time.sleep diff --git a/tests/_sync/test_extensions.py b/tests/_sync/test_extensions.py index d983e0f..bf26443 100644 --- a/tests/_sync/test_extensions.py +++ b/tests/_sync/test_extensions.py @@ -12,7 +12,6 @@ from ahk import AHK from ahk.extensions import Extension - sleep = time.sleep function_name = 'AHKDoSomething' diff --git a/tests/_sync/test_gui.py b/tests/_sync/test_gui.py index db35d5c..dac1484 100644 --- a/tests/_sync/test_gui.py +++ b/tests/_sync/test_gui.py @@ -6,7 +6,6 @@ from ahk import AHK - sleep = time.sleep diff --git a/tests/_sync/test_hotkeys.py b/tests/_sync/test_hotkeys.py index 6b1c0a9..7c1e995 100644 --- a/tests/_sync/test_hotkeys.py +++ b/tests/_sync/test_hotkeys.py @@ -7,7 +7,6 @@ from ahk import AHK from ahk import Window - sleep = time.sleep diff --git a/tests/_sync/test_keys.py b/tests/_sync/test_keys.py index d4335ae..b95fd93 100644 --- a/tests/_sync/test_keys.py +++ b/tests/_sync/test_keys.py @@ -10,7 +10,6 @@ from ahk import AHK from ahk import Window - sleep = time.sleep diff --git a/tests/_sync/test_mouse.py b/tests/_sync/test_mouse.py index a8b580c..50e5616 100644 --- a/tests/_sync/test_mouse.py +++ b/tests/_sync/test_mouse.py @@ -8,7 +8,6 @@ from ahk import AHK from ahk import Window - sleep = time.sleep