typeforce
Typeforce is a CLI tool that enriches your Python environment with type annotations, empowering mypy.
In particular:
- Generates
py.typedfor annotated packages. - Installs missed stub files and plugins.
py.typed
PEP-561 says the following:
Package maintainers who wish to support type checking of their code MUST add a marker file named py.typed to their package supporting typing.
In practice, many maintainers don't know about this marker. So there are tons of packages that do have type annotations but don't have py.typed.
Typeforce checks all installed third-party packages and adds py.typed into packages that have type annotations.
stubs and plugins
One of the breaking changes mypy 0.900 introduced is moving out all stubs and plugins for third-party packages out of mypy itself. Now, stub files for every such package should be installed manually.
Typeforce scans all installed third-party packages and installs all needed stub files and plugins if available.
Installation
python3 -m pip install --user typeforce
Usage
python3 -m typeforce --exe python3.9
Metadata
Release files for typeforce 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| typeforce-0.2.1.tar.gz | 5.2 kB | Without provenance | Details for typeforce-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typeforce-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for typeforce-0.2.1-py3-none-any.whl |
Total release size: 11.5 kB
Release files / typeforce-0.2.1.tar.gz
| Download URL | typeforce-0.2.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d12ff8788412320f89a4ed814184056b1e0a2cacff57d501da6b188a5ccb2d77
|
|
BLAKE2b-256 checksum How to use checksums |
7b76a4114a02e09507049edb9d37834bfb5d2821a903890747cfc0f10aafe8a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / typeforce-0.2.1-py3-none-any.whl
| Download URL | typeforce-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c419e83d663fa556e9c7f15ed9d4ab2e9bfe357d08cde98a3a8f289aa71ef06a
|
|
BLAKE2b-256 checksum How to use checksums |
d548d3cafa7242c3aafee1a363f35c51f4460c6a190f9ff01d8449e2700e2703
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Security for typeforce 0.2.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.