Skip to main content

dask-stubs

dask-stubs provides third-party typing information for the Dask project. The goal is to fill the gaps left by the runtime package so that type checkers such as Mypy and Pyright can reason about typical Dask usage with confidence.

Project layout

The repository separates runtime helpers from the stub definitions:

  • src/dask-stubs/ holds .pyi files that mirror the public Dask API.
  • tests/typecheck/samples/ provides runtime-free Python snippets that mypy validates to guard the stubs.
  • noxfile.py defines automation for linting, type checking, and stub sanity checks.

Quick start

  1. Install development dependencies with uv (Python 3.12+):

    uv sync --group dev
    
  2. Run the default automation via uv:

    uv run nox
    

    This runs Ruff, Mypy against the stubs, and the sample type-check tests.

Contribution guidelines

  1. Prefer working against small slices of the API. It is easier to review and iterate on focused modules.
  2. Each new stub should be paired with a usage example under tests/typecheck/samples/ (tested via mypy).
  3. Keep the stubs faithful to the runtime signatures. Where the runtime is dynamic, fall back to Any but leave a TODO for future improvement.
  4. Run the full uv run nox suite before sending a pull request.

See CONTRIBUTING.md for more detail on project conventions and coding standards.

Metadata

Release files for dask-stubs 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dask-stubs 0.1.6
File Size Uploaded
dask_stubs-0.1.6.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dask-stubs 0.1.6
File Interpreter ABI Platform
dask_stubs-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / dask_stubs-0.1.6.tar.gz

Download URL dask_stubs-0.1.6.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
02c06e66b179ce7aa7a2976ef250cbefebbb170a09f97d626a32bec5d0728acf
BLAKE2b-256 checksum
How to use checksums
73c70f8c8bc69a6a2912ac3d1e4b858b6f9118ed233b6dbbb6bd5145b860d793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / dask_stubs-0.1.6-py3-none-any.whl

Download URL dask_stubs-0.1.6-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87a540bbbdea0a168efebf0534264ce9cd9bcc47a45ecc415f7d6a3eb008a02a
BLAKE2b-256 checksum
How to use checksums
10d1db78152e865efca2d9464e0f3490aa73da006d42dcf2e99da04f227846eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page