beartype 0.15.0


Unbearably fast runtime type checking in pure Python.

Unbearably fast runtime type checking in pure Python.

Stars: 1995, Watchers: 1995, Forks: 37, Open Issues: 51

The beartype/beartype repo was created 3 years ago and the last code push was 2 days ago.
The project is very popular with an impressive 1995 github stars!

How to Install beartype

You can install beartype using pip

pip install beartype

or add it to a project with poetry

poetry add beartype

Package Details

Cecil Curry, et al.
GitHub Repo:


  • Software Development/Code Generators
  • Software Development/Libraries/Python Modules
  • Software Development/Quality Assurance
No  beartype  pypi packages just yet.


A list of common beartype errors.

Code Examples

Here are some beartype code examples and snippets.

GitHub Issues

The beartype package has 51 open issues on GitHub

  • [Feature Request] Pydantic-specific constrained list (i.e., pydantic.conlist) integration
  • [DOOR Bug] beartype.door.is_subhint() returns false negatives for parametrized generics sigh
  • [Docos] Add a new FAQ entry: "Why is @beartype spitting alien hieroglyphics at me?"
  • [Feature Request] beartype.door.die_if_unbearable() + typing.TypeGuard integration
  • [Feature Request] beartype.vale validators subscriptable by typing.TypeVar type variables
  • [Feature Request] Official FreeBSD support
  • [Feature Request] New BeartypeConf setting to hide @beartype in exception tracebacks
  • [Bug] beartype.claw doesn't supress warning and exceptions about non pure-python functions
  • [Feature Request] Postponed evaluation of non-self-referential type hints
  • [Feature Request] Allow emitting warnings rather than throwing errors for guadual adoption

See more issues on GitHub

Related Packages & Articles

vpype 1.13.0

The Swiss Army knife of vector graphics for pen plotters

aiopyql 0.359

A fast and easy-to-use asyncio ORM(Object-relational Mapper) for performing C.R.U.D. ops within RBDMS tables using python

ring 0.10.1

Function-oriented cache interface with built-in memcache & redis + asyncio support.