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.1.tar.gz (53.6 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.1-py3-none-any.whl (66.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for optype-0.17.1.tar.gz
Algorithm Hash digest
SHA256 07bfa32b795dea28fba8605a6288d36370d072f25183fb9c29b5a90f4b6f5638
MD5 4eff5f3e5d30a063d13c0fc4d3f65393
BLAKE2b-256 9b86e6f1f6f3487492dfcf3b7a2d4e2534d27af6ac05b364b276706906c34865

See more details on using hashes here.

Provenance

The following attestation bundles were made for optype-0.17.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for optype-0.17.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82f2508ca31cb21e53a41648482d890fe1f5c6cb153720551af41161555adaf1
MD5 e746f8de930222f10c24380a4525d8e3
BLAKE2b-256 2fd4c6a2b043e33f0dd012486dcebe0593585588d400175d22aad42049c88321

See more details on using hashes here.

Provenance

The following attestation bundles were made for optype-0.17.1-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