Typing stubs for the defopt package
Project description
defopt-stubs
Typing stubs for the defopt package.
These stubs provide type hints for the runtime library, which does not ship with annotations. Only the minimal API used by typical scripts is covered. Contributions to improve coverage are welcome.
Installation
pip install defopt-stubs
Development
Stubs are located under stubs/defopt-stubs. After installing development
dependencies with uv, validate them by running mypy:
uv sync
mypy
python tests/test_script.py 42 --times 1
uv sync installs the runtime library and tooling required for type
checking. The CI workflow performs the same steps.
Publishing
Releases are automated via GitHub Actions. Create a git tag starting
with v (e.g. v0.1.0) and push it to trigger a PyPI upload. A
PYPI_TOKEN secret must be configured in the repository settings.
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 defopt_stubs-0.1.0rc2.tar.gz.
File metadata
- Download URL: defopt_stubs-0.1.0rc2.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0229e83b1d5bc13d068497c47b37f6e775c310301927b37f5457b8ea4cb2efde
|
|
| MD5 |
1e3760bc7ba35e6a033de1a1e7a372f2
|
|
| BLAKE2b-256 |
9274deb4a4569ce56d5499be7f948ab6327a8907796c89751bdfc07c61022543
|
Provenance
The following attestation bundles were made for defopt_stubs-0.1.0rc2.tar.gz:
Publisher:
release.yml on lordmauve/defopt-stubs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
defopt_stubs-0.1.0rc2.tar.gz -
Subject digest:
0229e83b1d5bc13d068497c47b37f6e775c310301927b37f5457b8ea4cb2efde - Sigstore transparency entry: 394922124
- Sigstore integration time:
-
Permalink:
lordmauve/defopt-stubs@5aa15b15a3702659a3f93504ff4ba87f5d018642 -
Branch / Tag:
refs/tags/v0.1.0rc2 - Owner: https://github.com/lordmauve
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5aa15b15a3702659a3f93504ff4ba87f5d018642 -
Trigger Event:
push
-
Statement type:
File details
Details for the file defopt_stubs-0.1.0rc2-py3-none-any.whl.
File metadata
- Download URL: defopt_stubs-0.1.0rc2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30587a7bdacbf38309fec49b6482f094e18e299eb44d23a3d59a3b443685178c
|
|
| MD5 |
ef47f9a0be7bd07cd795410f843943bc
|
|
| BLAKE2b-256 |
ae29c61d6d09fe8935851bdb933b4aa269cc1c172228dbe64d523cc4078387e2
|
Provenance
The following attestation bundles were made for defopt_stubs-0.1.0rc2-py3-none-any.whl:
Publisher:
release.yml on lordmauve/defopt-stubs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
defopt_stubs-0.1.0rc2-py3-none-any.whl -
Subject digest:
30587a7bdacbf38309fec49b6482f094e18e299eb44d23a3d59a3b443685178c - Sigstore transparency entry: 394922138
- Sigstore integration time:
-
Permalink:
lordmauve/defopt-stubs@5aa15b15a3702659a3f93504ff4ba87f5d018642 -
Branch / Tag:
refs/tags/v0.1.0rc2 - Owner: https://github.com/lordmauve
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5aa15b15a3702659a3f93504ff4ba87f5d018642 -
Trigger Event:
push
-
Statement type: