Skip to main content

pytest-beartype-tests

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)

Metadata

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)

Source distribution for pytest-beartype-tests 2026.8.16
File Size Uploaded Provenance Actions
pytest_beartype_tests-2026.8.16.tar.gz 104.8 kB With provenance Details for pytest_beartype_tests-2026.8.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-beartype-tests 2026.8.16
File Interpreter ABI Platform Actions
pytest_beartype_tests-2026.8.16-py3-none-any.whl Python 3 none any Details for pytest_beartype_tests-2026.8.16-py3-none-any.whl

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 log

Release 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

Security for pytest-beartype-tests 2026.8.16

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pytest_beartype_tests-2026.8.16.tar.gz

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

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page