Registry / type-stubs / joblib-stubs

joblib-stubs

JSON →
library1.5.3.1.20260117pypypiunverified

PEP 561 type stubs for joblib, providing type hints for joblib's core modules including Parallel, delayed, Memory, and dump/load. Current version is 1.5.3.1.20260117, compatible with joblib>=1.5.3.2 (cpython-only). Updated to track joblib releases, with occasional fixes for type accuracy.

pip install joblib-stubs
INSTALL
IMPORT
SIG · JOBLIB-STUBS
J
joblib-stubs
type-stubspythonv1.5.3.1.20260117
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.5.2.0.20250831 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Parallel
from joblib_stubs import Parallel
from joblib import Parallel
delayed
from joblib_stubs import delayed
from joblib import delayed
Memory
from joblib_stubs import Memory
from joblib import Memory

Install joblib-stubs and use joblib normally; mypy or pyright will use the stubs for type checking.

from joblib import Parallel, delayed results = Parallel(n_jobs=2)(delayed(lambda x: x**2)(i) for i in range(10)) print(results)
Debug
Known issues
gotchajoblib-stubs is a stub-only package. It does not contain joblib itself. You must install `joblib` separately.
fix
Install both: `pip install joblib joblib-stubs`.
affects: all
gotchaThe stubs are tied to specific joblib versions. Ensure the joblib-stubs version aligns with your installed joblib version (e.g., joblib-stubs 1.5.3.x expects joblib ~=1.5.3).
fix
Check compatibility: `pip install joblib-stubs==$(python -c 'import joblib; print(joblib.__version__)')` or use constraints.
affects: >=1.5.0
gotchaSome stubs (e.g., `Memory`) may have incomplete type signatures. For instance, `joblib.Memory.__init__` might not perfectly reflect runtime default parameters.
fix
If you encounter type errors for advanced usage, consider adding inline `# type: ignore[arg-type]` and report issue to GitHub.
affects: all
Upgrade
Version history
1.5.3.1.20260117latest on PyPI · released Jan 17, 2026
Audit
Dependencies
joblibrequiredStubs are for joblib; must be installed separately.
Agent activity
38 hits · last 30 days
node
34
OpenAI (training)
1
Resources
joblib-stubs — pip install joblib-stubs · libregistry