Skip to content

Commit 6e79e64

Browse files
adamtheturtleclaude
andcommitted
Fix beartype crash on Windows by widening type hint to pytest.Item
The pytest_collection_modifyitems hook in vuforia_backends.py had items typed as list[pytest.Function], but Sybil doctest items (SybilItem) are also collected and don't inherit from Function. The @beartype decorator enforced this at runtime, crashing the Windows CI with a BeartypeCallHintParamViolation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c7bf96a commit 6e79e64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/mock_vws/fixtures/vuforia_backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def pytest_addoption(parser: pytest.Parser) -> None:
295295
@beartype
296296
def pytest_collection_modifyitems(
297297
config: pytest.Config,
298-
items: list[pytest.Function],
298+
items: list[pytest.Item],
299299
) -> None:
300300
"""Skip Docker tests if requested."""
301301
skip_docker_build_tests_option = "--skip-docker_build_tests"

0 commit comments

Comments
 (0)