Metadata-Version: 2.3
Name: dask-stubs
Version: 0.1.3
Summary: Typing stubs for the Dask ecosystem.
Keywords: typing,type-stubs,dask
Author: Clouder0
Author-email: Clouder0 <clouder0@outlook.com>
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# 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+):

   ```bash
   uv sync --group dev
   ```

2. Run the default automation via `uv`:

   ```bash
   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.
