A tiny pytest plugin that applies beartype to every collected test function, giving you runtime type-checking of test signatures and any locally-typed variables inside the test body.
This is distinct from pytest-beartype, which beartypes your source packages. This plugin beartypes the tests themselves.
Install
uv add --dev pytest-beartype-tests
The plugin auto-registers via the pytest11 entry point, so there is no configuration.
What it does
Equivalent to writing this hook in your conftest.py:
import pytest
from beartype import beartype
def pytest_collection_modifyitems(items: list[pytest.Function]) -> None:
for item in items:
item.obj = beartype(obj=item.obj)
Release files for pytest-beartype-tests 2026.8.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_beartype_tests-2026.8.16.tar.gz | 104.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_beartype_tests-2026.8.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:110.6 kB
Release files / pytest_beartype_tests-2026.8.16.tar.gz
| Download URL | pytest_beartype_tests-2026.8.16.tar.gz |
|---|---|
| Size | 104.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf5d0cf9670c717c6c72f502ae355c550edc8252f22808d86bdb445d7e646007
|
|
BLAKE2b-256 checksum How to use checksums |
93465dd36239b39d9de2b7edc45c42c5b44732e31c343fdc91a6bdfdf7a56b8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.
Transparency logRelease files / pytest_beartype_tests-2026.8.16-py3-none-any.whl
| Download URL | pytest_beartype_tests-2026.8.16-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c91fec8a75dba60a8cccf28f6605e71e7de9e36e845ac9f4ef820b3d06b9d391
|
|
BLAKE2b-256 checksum How to use checksums |
82102ad06d0d521a56d979aeeb0d379bc2488c84c2ad3bd34e62b7639e08e468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.
Transparency log