fix: move pyright: ignore comments to same line as private member access

basedpyright requires the ignore comment on the same line as the access, not the following line. Fixes CI failure on PR #1091.
This commit is contained in:
Hermes Agent 2026-08-29 12:01:52 +00:00
parent 39a67cd1a9
commit 4e5e59c5d8
1 changed files with 2 additions and 4 deletions

View File

@ -55,8 +55,7 @@ def test_connect_listener_registered_when_enabled() -> None:
from src import db as db_module
_listener = db_module._set_hnsw_iterative_scan_on_connect
# pyright: ignore[reportPrivateUsage]
_listener = db_module._set_hnsw_iterative_scan_on_connect # pyright: ignore[reportPrivateUsage]
# The listener is registered at import time when the setting is
# truthy (the default is "strict_order"). We verify registration via
@ -90,8 +89,7 @@ def test_connect_listener_not_registered_when_disabled(
from src import db as db_module
_listener = db_module._set_hnsw_iterative_scan_on_connect
# pyright: ignore[reportPrivateUsage]
_listener = db_module._set_hnsw_iterative_scan_on_connect # pyright: ignore[reportPrivateUsage]
execute_calls: list[tuple[tuple[object, ...], dict[str, object]]] = []