types-toposort
Typing stubs for toposort
Decision gist · record as of 2026-08-14
Yes, if you use toposort in a type-checked project. Install it alongside toposort to enable full static type checking. It has no runtime cost, low install friction, and is actively maintained. If you don't use type checking or toposort is already fully typed, it is not necessary.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction install with no runtime dependencies.
- Actively maintained as part of the typeshed project, with recent releases and current status.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0, a permissive license that allows free use, modification, and distribution with minimal restrictions.
last release 2026-04-08 (128 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 310,619 downloads/mo, #7,743 on PyPI
Alternatives
Verify before relying
pip install types-toposort
Then use with your type checker configuration (mypy or pyright) to validate toposort usage in your code.- Whether this package is required or optional when using toposort in a type-checked project
- Whether toposort itself is already typed or if these stubs are necessary for full coverage
What it is and what it does
types-toposort is a type stub package that provides type annotations for the toposort library. It allows static type checkers like mypy and pyright to understand and validate the types of toposort's functions and classes when you use them in your code. This is useful when toposort itself does not ship with inline type hints.
The package is maintained as part of the typeshed project, which is the canonical repository of type stubs for the Python ecosystem. It targets toposort version 1.10 and has been tested with mypy 1.20.0 and pyright 1.1.408. Since it contains only type information and no runtime code, it has zero runtime dependencies and installs quickly.
Use it for
- Enable type checking in projects that use toposort for dependency resolution or task scheduling
- Catch type errors in topological sort operations before runtime in CI/CD pipelines
- Provide IDE autocompletion and type hints when writing code that calls toposort functions
- Satisfy strict type checking policies that require all dependencies to have type coverage
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use toposort in a type-checked project.
Install it alongside toposort to enable full static type checking. It has no runtime cost, low install friction, and is actively maintained. If you don't use type checking or toposort is already fully typed, it is not necessary.
Install
types-toposort on PyPI
Before you install
Low friction install with no runtime dependencies. Actively maintained as part of the typeshed project, with recent releases and current status.
Requires Python 3.10 or later.
License in practice
Licensed under Apache-2.0, a permissive license that allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-toposort
Then use with your type checker configuration (mypy or pyright) to validate toposort usage in your code.
Verify before relying
- Whether this package is required or optional when using toposort in a type-checked project
- Whether toposort itself is already typed or if these stubs are necessary for full coverage
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 128 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 310,619 / month, #7,743 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_toposort-1.10.0.20260408-py3-none-any.whl
Tags
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 › “type stubs toposort”
- types-toposortProvides type hints for the toposort package, enabling type checkers…
- toposortImplements topological sorting of directed acyclic graphs, ordering…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
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.
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.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
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.
See also types-tabulate · types-chevron · types-retry · toposort · types-grpcio-reflection · types-toml · types-Flask-Migrate · types-jsonschema · types-colorama · types-pyperclip