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.0rc2.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for defopt_stubs-0.1.0rc2.tar.gz
Algorithm Hash digest
SHA256 0229e83b1d5bc13d068497c47b37f6e775c310301927b37f5457b8ea4cb2efde
MD5 1e3760bc7ba35e6a033de1a1e7a372f2
BLAKE2b-256 9274deb4a4569ce56d5499be7f948ab6327a8907796c89751bdfc07c61022543

See more details on using hashes here.

Provenance

The following attestation bundles were made for defopt_stubs-0.1.0rc2.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.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for defopt_stubs-0.1.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 30587a7bdacbf38309fec49b6482f094e18e299eb44d23a3d59a3b443685178c
MD5 ef47f9a0be7bd07cd795410f843943bc
BLAKE2b-256 ae29c61d6d09fe8935851bdb933b4aa269cc1c172228dbe64d523cc4078387e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for defopt_stubs-0.1.0rc2-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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page