Skip to content

phi-friday/joblib-stubs

Repository files navigation

joblib-stubs

License: MIT PyPI version python version

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).

Installation

pip install joblib-stubs

Usage

Once 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])

License

MIT - see LICENSE for details.

About

joblib stubs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages