types-backports
Typing stubs for backports
What it is and what it does
types-backports is an auto-generated PEP 561 type stub package that provides type information for the backports package. It allows static type checkers—mypy, PyCharm, pytype, and similar tools—to understand and validate the types of code that imports from backports, catching type errors at check time rather than runtime.
The stubs are generated from typeshed and serve as a bridge between the backports package (which may not have inline type annotations) and type-checking tools. Installing this package alongside backports enables your type checker to reason about backports' API without requiring backports itself to be typed.
Use it for:
- Enable mypy or PyCharm to type-check code that imports from backports without false positives.
- Validate compatibility of your code with backports APIs during CI/CD type-checking passes.
- Develop typed applications that depend on backports while maintaining strict type safety.
- Integrate backports into a typed codebase without disabling type checking for those imports.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides PEP 561 type stubs for the backports package, enabling type checkers like mypy and PyCharm to validate code using backports.
Yes, if you use backports and run static type checking. Install it alongside backports to give your type checker visibility into backports' API. The package is lightweight, has no dependencies, and carries a permissive license. Verify that the stubs cover the backports version and modules you actually use.
Install
types-backports on PyPI
pip
pip install types-backportsuv
uv add types-backportspoetry
poetry add types-backportsInstalling types-backports
Before you install
Low install friction with no runtime dependencies. Maintenance status is active; the underlying typeshed repository remains actively maintained.
License in practice
Licensed under Apache-2.0 (permissive), imposing no restrictions on use in proprietary or open-source projects.
Quickstart
pip install types-backports
# Then use with mypy or other type checkers
# mypy your_code.py
Verify before relying
- Whether this stub package is kept in sync with the current backports package API and whether it covers all backports submodules in use.
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,884 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 267,279/month — #8,294 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_backports-0.1.3-py2.py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-attrsProvides PEP 561 type stubs for the attrs…
permissive · top 15,000 on PyPI
types-factory-boyProvides PEP 561 type stubs for factory-boy,…
permissive · top 15,000 on PyPI
types-ipaddressProvides type stubs for Python's standard…
permissive · top 15,000 on PyPI
types-pkg-resourcesProvides type stubs for pkg_resources to enable…
permissive · top 15,000 on PyPI
types-dataclassesProvides type stubs for Python's dataclasses…
permissive · top 15,000 on PyPI
types-futuresProvides type stubs for the futures package,…
permissive · top 15,000 on PyPI
pybind11-stubgenGenerates PEP 561 type stubs for Python binary…
permissive · top 5,000 on PyPI
data-science-typesProvides PEP-561-compliant type stubs for…
permissive · top 15,000 on PyPI
types-atomicwritesProvides type stubs for the atomicwrites…
permissive · top 15,000 on PyPI
types-maxminddbProvides type stubs for the maxminddb package,…
permissive · top 15,000 on PyPI