Metadata-Version: 2.5
Name: joblib-stubs
Version: 1.6.0.1.20261012
Summary: joblib stubs
Project-URL: Repository, https://github.com/phi-friday/joblib-stubs
Author-email: phi <phi.friday@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Typing :: Stubs Only
Requires-Python: >=3.12
Requires-Dist: typing-extensions>=4.4.0
Provides-Extra: mypy
Requires-Dist: mypy>=2.4.0; extra == 'mypy'
Provides-Extra: mypy-strict
Requires-Dist: mypy==2.4.0; extra == 'mypy-strict'
Requires-Dist: mypy>=2.4.0; extra == 'mypy-strict'
Description-Content-Type: text/markdown

# joblib-stubs

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI version](https://badge.fury.io/py/joblib-stubs.svg)](https://badge.fury.io/py/joblib-stubs)
[![python version](https://img.shields.io/pypi/pyversions/joblib-stubs.svg)](#)

Type stubs for the [joblib](https://github.com/joblib/joblib) library.

> [!NOTE]  
> This package provides type hints only and contains no runtime code.  
> For the actual runtime implementation, install [`joblib`](https://github.com/joblib/joblib).

> [!WARNING]  
> This package does **not** include type stubs for `joblib.externals` (bundled `cloudpickle` and `loky`).

## Installation

```shell
pip install joblib-stubs
```

## Usage

Once installed, type checkers will automatically discover and use these stubs when analyzing code that uses `joblib`:

```python
from math import sqrt
from typing import assert_type

from joblib import Parallel, delayed

# Your type checker will now understand joblib's types
results = Parallel(n_jobs=2)(delayed(sqrt)(i**2) for i in range(10))
assert_type(results, list[float])
```

## License

MIT - see [LICENSE](https://github.com/phi-friday/joblib-stubs/blob/main/LICENSE) for details.
