Skip to main content

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.

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)

Source distribution for optype 0.19.0
File Size Uploaded
optype-0.19.0.tar.gz 116.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for optype 0.19.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.19.0 This release

2 release files

0.17.1

2 release files

0.16.0

2 release files

0.13.4

2 release files

0.13.3

2 release files

0.13.2

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.2

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.10.0

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.0

2 release files

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