$npx skillfedfor your agent

scikit-learn-stubs

scikit-learn stubs from the Microsoft python-type-stubs repository

With conditionsPyPI Software DevelopmentReleased Aug 2025336.3K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — scikit_learn_stubs-0.0.3-py3-none-any.whl
v0.0.3 · released 2025-08-28 · Python >=3.9

Yes, if you use scikit-learn and want static type checking in your project. Install it as a development dependency. However, verify that the stubs are current for your scikit-learn version, and monitor the repository for updates—the minimal maintenance signal and recent first release suggest this may not track scikit-learn changes closely. The Microsoft repository may be a more actively maintained alternative.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; type checking tool (mypy, pyright, pylance) must be separately configured to use the stubs.
  • Low friction install with no runtime dependencies.
  • Package is newly released (first release 2025-08-27) and marked as aging after 351 days, with minimal maintenance activity and only 3 repository stars.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or distribution in your own projects.

last release 2025-08-28 (351 days) · last repo commit 2025-08-28 · 3 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 336,315 downloads/mo, #7,462 on PyPI

Verify before relying

pip install scikit-learn-stubs

# Then use with type checker (mypy, pyright, etc.)
# in your IDE or CI pipeline for scikit-learn code
  • Whether stubs are kept in sync with scikit-learn releases given the minimal maintenance signal.
  • Coverage completeness of the stubs relative to the full scikit-learn API surface.
  • Whether this package is actively maintained or if the Microsoft repository is the recommended source.
Same gist for agents: .md · .json

What it is and what it does

scikit-learn-stubs is a type stub package that provides type hints for scikit-learn, enabling static type checkers like mypy and pyright to understand scikit-learn's API. Type stubs are metadata files that describe the types of functions, classes, and methods without executing code, allowing developers to catch type errors during development rather than at runtime.

The package is a PyPI distribution of stubs originally from Microsoft's Python Type Stubs repository. It has no runtime dependencies and is installed purely to support development-time type checking. The package supports Python 3.9 through 3.13 and carries an MIT license. However, the package is newly released and shows minimal ongoing maintenance, which may affect how current the stubs remain relative to scikit-learn's own API evolution.

Use it for

  • Enable mypy or pyright to type-check code that calls scikit-learn functions and classes.
  • Improve IDE autocomplete and inline documentation for scikit-learn in editors that support type stubs.
  • Catch type mismatches in machine learning pipelines during development before runtime.
  • Support continuous integration pipelines that enforce static type checking on scikit-learn-dependent code.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you use scikit-learn and want static type checking in your project.

Install it as a development dependency. However, verify that the stubs are current for your scikit-learn version, and monitor the repository for updates—the minimal maintenance signal and recent first release suggest this may not track scikit-learn changes closely. The Microsoft repository may be a more actively maintained alternative.

Install

scikit-learn-stubs on PyPI

Before you install

Low friction install with no runtime dependencies. Package is newly released (first release 2025-08-27) and marked as aging after 351 days, with minimal maintenance activity and only 3 repository stars.

Requires Python 3.9 or later; type checking tool (mypy, pyright, pylance) must be separately configured to use the stubs.

License in practice

MIT license is permissive and imposes no restrictions on use, modification, or distribution in your own projects.

Quickstart

pip install scikit-learn-stubs

# Then use with type checker (mypy, pyright, etc.)
# in your IDE or CI pipeline for scikit-learn code

Verify before relying

  • Whether stubs are kept in sync with scikit-learn releases given the minimal maintenance signal.
  • Coverage completeness of the stubs relative to the full scikit-learn API surface.
  • Whether this package is actively maintained or if the Microsoft repository is the recommended source.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 351 days since the last release
Last repo commit
First released
Downloads336,315 / month, #7,462 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPython

Evidence: scikit_learn_stubs-0.0.3-py3-none-any.whl

Tags

Capabilities
scikit-learn type stubssklearn type hintspython type checking sklearnscikit-learn static typingmypy scikit-learntype annotations machine learning
Topics
type-stubsstatic-analysis
PyPI keywords
scikit-learnsklearnstubs

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “scikit-learn type stubs”

  • scikit-learn-stubsProvides type stubs for scikit-learn to enable static type checking…
  • types-assertpyProvides type stubs enabling static type checkers like mypy and…
  • types-appdirsProvides type stubs for the appdirs package to enable static type…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also sklearn · scikit-learn · pandas-stubs · skops · scikeras · sklearndf · sklearn-compat · sklearn-crfsuite · scikit-learn-extra