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.18.0.tar.gz (60.0 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.18.0-py3-none-any.whl (73.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for optype-0.18.0.tar.gz
Algorithm Hash digest
SHA256 ea10dee61b15ca299ed0d97025d362585c4dfc5481159bb999a1d0d414bbcb04
MD5 c36fa06be5cb10a3754e94f7760d1cbe
BLAKE2b-256 995151dc9b1009e020f44703933d4d1ee3429c647c026ce7806b37ee2b257998

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: optype-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 73.4 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.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91822ed8516e7a4f225ba53d30f291776c35f31553fb952d7cda98286679c5a6
MD5 135dc3436bb8784f6c170258f50475b8
BLAKE2b-256 5b912b064a117cb2593bc3eb04ee994134ca2a6bf2162c92961769947e3258cc

See more details on using hashes here.

Provenance

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