From 4e5e59c5d8c7e48400713fec40126c3b7c5ffc0b Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 29 Aug 2026 12:01:52 +0000 Subject: [PATCH] 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. --- tests/test_hnsw_iterative_scan.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_hnsw_iterative_scan.py b/tests/test_hnsw_iterative_scan.py index cf5baf49..195822c4 100644 --- a/tests/test_hnsw_iterative_scan.py +++ b/tests/test_hnsw_iterative_scan.py @@ -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]]] = []