Skip to content

Latest commit

 

History

History
51 lines (45 loc) · 3.4 KB

File metadata and controls

51 lines (45 loc) · 3.4 KB

optype

Building blocks for precise type hints

GitHub License PyPI Version Conda Version Python Versions PyPI Downloads

numpy basedpyright mypy pyrefly ty ruff

GitHub · Installation · Getting Started · API Reference · Type Inference · Changelog

Stop fighting your type checker. Work with it.
optype gives you single-method protocols for every dunder, exact types that reject sneaky subtypes, and typed operators that actually make sense, so you can express what your code really accepts.

Zero dependencies. Works with every modern type checker. Optional NumPy support included. Battle tested.

Visit the documentation at jorenham.github.io/optype.