Skip to main content

Building Blocks for Precise & Flexible Type Hints

Project description

optype

Building blocks for precise type hints

GitHub License PyPI Version Conda Version Python Versions PyPI Downloads

ruff basedpyright mypy pyrefly ruff ruff

GitHub · Installation · Getting Started · API Reference · 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optype-0.17.0.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optype-0.17.0-py3-none-any.whl (65.9 kB view details)

Uploaded Python 3

File details

Details for the file optype-0.17.0.tar.gz.

File metadata

  • Download URL: optype-0.17.0.tar.gz
  • Upload date:
  • Size: 53.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for optype-0.17.0.tar.gz
Algorithm Hash digest
SHA256 31351a1e64d9eba7bf67e14deefb286e85c66458db63c67dd5e26dd72e4664e5
MD5 dc876ae76e06cf08d66292ebb5893253
BLAKE2b-256 819f3b13bab05debf685678b8af004e46b8c67c6f98ffa08eaf5d33bcf162c16

See more details on using hashes here.

Provenance

The following attestation bundles were made for optype-0.17.0.tar.gz:

Publisher: publish-pypi.yml on jorenham/optype

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file optype-0.17.0-py3-none-any.whl.

File metadata

  • Download URL: optype-0.17.0-py3-none-any.whl
  • Upload date:
  • Size: 65.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for optype-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c2d88ff13149454bcf6eb47502f80d288bc542e7238fcc412ac4d222c439397
MD5 585f22b231a04116274eed66c769e93b
BLAKE2b-256 6b44dca78187415947d1bb90b2ee2a58e47d9573528331e8dc6196996b53612a

See more details on using hashes here.

Provenance

The following attestation bundles were made for optype-0.17.0-py3-none-any.whl:

Publisher: publish-pypi.yml on jorenham/optype

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page