github.com · Saved

beartype: Unbearably fast O(1) runtime type-checking in pure Python

github.com/beartype/beartype

Repository

beartype/beartype

Unbearably fast near-real-time pure-Python runtime-static type-checker.

Python · 3,508 stars · MIT · last push October 23, 2026 · Homepage

What Jamie wrote

This looks like a powerful type-checker for Python.

Beartype brings Rust- and C++-inspired zero-cost abstractions into the lawless world of dynamically-typed Python by enforcing type safety at the granular level of functions and methods against type hints standardized by the Python community in O(1) non-amortized worst-case time with negligible constant factors.

Easy-to-use and claims to be extremely performant.