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
File details
Details for the file defopt_stubs-0.1.0rc1.tar.gz
.
File metadata
- Download URL: defopt_stubs-0.1.0rc1.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e67e3ecdc34b63d28bdcce3eb08631d441c825db8b84c5a32575d53c3234d7ed
|
|
MD5 |
e822a596eb8a0d2e2d3f70ff42289741
|
|
BLAKE2b-256 |
c575e6cdf052c18ca6c4b216bd636c2e72bccd42d164021871576e98f5602deb
|
Provenance
The following attestation bundles were made for defopt_stubs-0.1.0rc1.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.0rc1.tar.gz
-
Subject digest:
e67e3ecdc34b63d28bdcce3eb08631d441c825db8b84c5a32575d53c3234d7ed
- Sigstore transparency entry: 337609600
- Sigstore integration time:
-
Permalink:
lordmauve/defopt-stubs@e08fc4c2de2892e28a0c2f40600c62ed3e593d46
-
Branch / Tag:
refs/tags/v0.1.0rc1
- Owner: https://github.com/lordmauve
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@e08fc4c2de2892e28a0c2f40600c62ed3e593d46
-
Trigger Event:
push
-
Statement type:
File details
Details for the file defopt_stubs-0.1.0rc1-py3-none-any.whl
.
File metadata
- Download URL: defopt_stubs-0.1.0rc1-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 |
c7b78c04cda3bcdf2ff2f8e748cde87d504cb19550450c1f55fd5ae2444eadd8
|
|
MD5 |
90f588a059695cff1f5215fe2b35b0e1
|
|
BLAKE2b-256 |
f41047bd30ac49d96ea1d5c4cc1f06951688addf6960f6eb319cb86be5d9e474
|
Provenance
The following attestation bundles were made for defopt_stubs-0.1.0rc1-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.0rc1-py3-none-any.whl
-
Subject digest:
c7b78c04cda3bcdf2ff2f8e748cde87d504cb19550450c1f55fd5ae2444eadd8
- Sigstore transparency entry: 337609646
- Sigstore integration time:
-
Permalink:
lordmauve/defopt-stubs@e08fc4c2de2892e28a0c2f40600c62ed3e593d46
-
Branch / Tag:
refs/tags/v0.1.0rc1
- Owner: https://github.com/lordmauve
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@e08fc4c2de2892e28a0c2f40600c62ed3e593d46
-
Trigger Event:
push
-
Statement type: