Type stubs for the joblib library.
Note
This package provides type hints only and contains no runtime code.
For the actual runtime implementation, install joblib.
Warning
This package does not include type stubs for joblib.externals (bundled cloudpickle and loky).
pip install joblib-stubsOnce installed, type checkers will automatically discover and use these stubs when analyzing code that uses joblib:
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])MIT - see LICENSE for details.