Type stubs for scikit-learn, providing static type information for type checkers like mypy and pyright. Current version 0.0.3, updated 2025; low release cadence. Maintained by Microsoft via the python-type-stubs repository, forked by hoel-bagard.
pip install scikit-learn-stubsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic scikit-learn usage with type stubs enabled. The stubs are automatically discovered by mypy/pyright when installed.
Check the stub coverage in the repository before relying on types for rarely used estimators.
Consider using the official scikit-learn type stubs from scikit-learn itself (if available in future) or contribute to this fork.
Pin exact version in requirements: scikit-learn-stubs==0.0.3