fix: resolve basedpyright errors in aruco and tests
This commit is contained in:
@@ -64,10 +64,10 @@ def test_pool_size_1_equivalence(mock_dependencies):
|
||||
|
||||
# Run with pool_size=1
|
||||
apply_depth_verify_refine_postprocess(
|
||||
results=results,
|
||||
verification_frames=verification_frames,
|
||||
results=results, # type: ignore
|
||||
verification_frames=verification_frames, # pyright: ignore
|
||||
marker_geometry=marker_geometry,
|
||||
camera_matrices=camera_matrices,
|
||||
camera_matrices=camera_matrices, # pyright: ignore
|
||||
verify_depth=True,
|
||||
refine_depth=False,
|
||||
use_confidence_weights=False,
|
||||
@@ -122,10 +122,10 @@ def test_pool_size_5_integration(mock_dependencies):
|
||||
|
||||
# Run with pool_size=3
|
||||
apply_depth_verify_refine_postprocess(
|
||||
results=results,
|
||||
verification_frames=verification_frames,
|
||||
results=results, # type: ignore
|
||||
verification_frames=verification_frames, # pyright: ignore
|
||||
marker_geometry=marker_geometry,
|
||||
camera_matrices=camera_matrices,
|
||||
camera_matrices=camera_matrices, # pyright: ignore
|
||||
verify_depth=True,
|
||||
refine_depth=False,
|
||||
use_confidence_weights=False,
|
||||
@@ -148,8 +148,8 @@ def test_pool_size_5_integration(mock_dependencies):
|
||||
|
||||
# Verify metadata was added
|
||||
assert "depth_pool" in results[serial]
|
||||
assert results[serial]["depth_pool"]["pooled"] is True
|
||||
assert results[serial]["depth_pool"]["pool_size_actual"] == 3
|
||||
assert results[serial]["depth_pool"]["pooled"] is True # pyright: ignore
|
||||
assert results[serial]["depth_pool"]["pool_size_actual"] == 3 # pyright: ignore
|
||||
|
||||
|
||||
def test_pool_fallback_insufficient_valid(mock_dependencies):
|
||||
@@ -222,10 +222,10 @@ def test_pool_fallback_insufficient_valid(mock_dependencies):
|
||||
camera_matrices = {serial: np.eye(3)}
|
||||
|
||||
apply_depth_verify_refine_postprocess(
|
||||
results=results,
|
||||
verification_frames=verification_frames,
|
||||
results=results, # type: ignore
|
||||
verification_frames=verification_frames, # pyright: ignore
|
||||
marker_geometry=marker_geometry,
|
||||
camera_matrices=camera_matrices,
|
||||
camera_matrices=camera_matrices, # pyright: ignore
|
||||
verify_depth=True,
|
||||
refine_depth=False,
|
||||
use_confidence_weights=False,
|
||||
@@ -246,8 +246,8 @@ def test_pool_fallback_insufficient_valid(mock_dependencies):
|
||||
assert passed_depth_map is d1
|
||||
|
||||
# Verify metadata
|
||||
assert results[serial]["depth_pool"]["pooled"] is False
|
||||
assert results[serial]["depth_pool"]["pooled"] is False # pyright: ignore
|
||||
assert (
|
||||
results[serial]["depth_pool"]["fallback_reason"]
|
||||
results[serial]["depth_pool"]["fallback_reason"] # pyright: ignore
|
||||
== "insufficient_valid_points"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user