skillfed

types-backports

Typing stubs for backports

types-backports v0.1.3 267.3K downloads/30d#8,294 on PyPI5,108
Permissive license Apache-2.0 license Active released

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-backports

uv

uv add types-backports

poetry

poetry add types-backports

Installing 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

License :: OSI Approved :: Apache Software LicenseTyping :: Typed

Tags

type stubs for backportsmypy backports typingpep 561 type hintsbackports type checkingtypeshed stubspython type annotationsstatic type checking backports
type-stubspep-561

More Software Development packages