Skip to content

Commit 47b829d

Browse files
sadpandajoeclaude
andcommitted
Revert "chore(tests): annotate remaining time-offset test fixture param"
This reverts commit 41eaa74. Annotating the fixture as QueryContextProcessor resolves _qc_datasource to the Explorable protocol, which does not declare get_offset_custom_or_inherit -- the `processor` fixture binds it (and several other ExploreMixin methods) onto a mock at runtime. The annotation therefore broke mypy: tests/unit_tests/common/test_query_context_processor.py:425: error: "Explorable" has no attribute "get_offset_custom_or_inherit" The tests that reach through _qc_datasource for these bound methods are deliberately left unannotated for this reason. Co-Authored-By: Claude Opus 4.8 <[email protected]>
1 parent 41eaa74 commit 47b829d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/unit_tests/common/test_query_context_processor.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def test_get_offset_custom_or_inherit_with_inherit(processor):
411411
],
412412
)
413413
def test_get_offset_custom_or_inherit_shifts_by_full_range(
414-
processor: QueryContextProcessor, hours: int
414+
processor, hours: int
415415
) -> None:
416416
"""
417417
'inherit' compares a range against the period immediately preceding it,

0 commit comments

Comments
 (0)