From 6e79e641bea191b03dc34b1ab750e40c454d9ab8 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Wed, 8 Apr 2026 08:31:54 +0100 Subject: [PATCH] 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) --- tests/mock_vws/fixtures/vuforia_backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mock_vws/fixtures/vuforia_backends.py b/tests/mock_vws/fixtures/vuforia_backends.py index 3aacf286e..adb281569 100644 --- a/tests/mock_vws/fixtures/vuforia_backends.py +++ b/tests/mock_vws/fixtures/vuforia_backends.py @@ -295,7 +295,7 @@ def pytest_addoption(parser: pytest.Parser) -> None: @beartype def pytest_collection_modifyitems( config: pytest.Config, - items: list[pytest.Function], + items: list[pytest.Item], ) -> None: """Skip Docker tests if requested.""" skip_docker_build_tests_option = "--skip-docker_build_tests"