From a99022f2051daf7167bce129b40267ba72981396 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sun, 22 Feb 2026 00:59:14 +0000 Subject: [PATCH] Add @beartype to pytest_collection_modifyitems hook Add runtime type checking to the pytest hook that was missing it. Co-authored-by: Cursor --- conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conftest.py b/conftest.py index 89548f80..d5ef944b 100644 --- a/conftest.py +++ b/conftest.py @@ -18,6 +18,7 @@ ) +@beartype def pytest_collection_modifyitems(items: list[pytest.Item]) -> None: """Apply the beartype decorator to all collected test functions.""" for item in items: