Skip to content

Commit a99022f

Browse files
Add @beartype to pytest_collection_modifyitems hook
Add runtime type checking to the pytest hook that was missing it. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent d16decf commit a99022f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
)
1919

2020

21+
@beartype
2122
def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
2223
"""Apply the beartype decorator to all collected test functions."""
2324
for item in items:

0 commit comments

Comments
 (0)