Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

defopt_stubs-0.1.0rc1.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

defopt_stubs-0.1.0rc1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for defopt_stubs-0.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 e67e3ecdc34b63d28bdcce3eb08631d441c825db8b84c5a32575d53c3234d7ed
MD5 e822a596eb8a0d2e2d3f70ff42289741
BLAKE2b-256 c575e6cdf052c18ca6c4b216bd636c2e72bccd42d164021871576e98f5602deb

See more details on using hashes here.

Provenance

The following attestation bundles were made for defopt_stubs-0.1.0rc1.tar.gz:

Publisher: release.yml on lordmauve/defopt-stubs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file defopt_stubs-0.1.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for defopt_stubs-0.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7b78c04cda3bcdf2ff2f8e748cde87d504cb19550450c1f55fd5ae2444eadd8
MD5 90f588a059695cff1f5215fe2b35b0e1
BLAKE2b-256 f41047bd30ac49d96ea1d5c4cc1f06951688addf6960f6eb319cb86be5d9e474

See more details on using hashes here.

Provenance

The following attestation bundles were made for defopt_stubs-0.1.0rc1-py3-none-any.whl:

Publisher: release.yml on lordmauve/defopt-stubs

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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page