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: 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