Building Blocks for Precise & Flexible Type Hints
Project description
optype
Building blocks for precise type hints
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31351a1e64d9eba7bf67e14deefb286e85c66458db63c67dd5e26dd72e4664e5
|
|
| MD5 |
dc876ae76e06cf08d66292ebb5893253
|
|
| BLAKE2b-256 |
819f3b13bab05debf685678b8af004e46b8c67c6f98ffa08eaf5d33bcf162c16
|
Provenance
The following attestation bundles were made for optype-0.17.0.tar.gz:
Publisher:
publish-pypi.yml on jorenham/optype
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
optype-0.17.0.tar.gz -
Subject digest:
31351a1e64d9eba7bf67e14deefb286e85c66458db63c67dd5e26dd72e4664e5 - Sigstore transparency entry: 1061989207
- Sigstore integration time:
-
Permalink:
jorenham/optype@d9832275805c0e9e8e42724eb80b6e2c9231fc27 -
Branch / Tag:
refs/tags/v0.17.0 - Owner: https://github.com/jorenham
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d9832275805c0e9e8e42724eb80b6e2c9231fc27 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c2d88ff13149454bcf6eb47502f80d288bc542e7238fcc412ac4d222c439397
|
|
| MD5 |
585f22b231a04116274eed66c769e93b
|
|
| BLAKE2b-256 |
6b44dca78187415947d1bb90b2ee2a58e47d9573528331e8dc6196996b53612a
|
Provenance
The following attestation bundles were made for optype-0.17.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on jorenham/optype
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
optype-0.17.0-py3-none-any.whl -
Subject digest:
8c2d88ff13149454bcf6eb47502f80d288bc542e7238fcc412ac4d222c439397 - Sigstore transparency entry: 1061989252
- Sigstore integration time:
-
Permalink:
jorenham/optype@d9832275805c0e9e8e42724eb80b6e2c9231fc27 -
Branch / Tag:
refs/tags/v0.17.0 - Owner: https://github.com/jorenham
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d9832275805c0e9e8e42724eb80b6e2c9231fc27 -
Trigger Event:
push
-
Statement type: