optype
Building blocks for precise type hints
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.
Metadata
Release files for optype 0.19.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| optype-0.19.0.tar.gz | 116.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optype-0.19.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 258.1 kB
Release files / optype-0.19.0.tar.gz
| Download URL | optype-0.19.0.tar.gz |
|---|---|
| Size | 116.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50ce4c0ca419026eeae4130dc90c6a0b9a0b54ffe1d940fc26e8d0058903de4c
|
|
BLAKE2b-256 checksum How to use checksums |
51ccab0d908a4fd70493628cde3ce0f809c2b0d69b645af52202da4f1b0aeea3
|
| 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 Oct 2, 2026.
Transparency logRelease files / optype-0.19.0-py3-none-any.whl
| Download URL | optype-0.19.0-py3-none-any.whl |
|---|---|
| Size | 141.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31bff7d2e51e88916a11affed80dbe306ca9e74c76b93b143f1355bb127a7a8c
|
|
BLAKE2b-256 checksum How to use checksums |
a92c8de9d2c9a328419b28feb53081460d901e950b8b676914959a6e1beecc83
|
| 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 Oct 2, 2026.
Transparency log