--- id: types-backports version: "0.1.3" license: Apache-2.0 license license_treatment: permissive maintenance: active --- # types-backports — Typing stubs for backports License: permissive · Maintenance: active · Downloads: 267.3K/mo ## 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 above — 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 pip install types-backports uv add types-backports 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: unspecified - Install friction: low - Maintenance: active - Downloads: 267.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs for backports, mypy backports typing, pep 561 type hints, backports type checking, typeshed stubs, python type annotations, static type checking backports, type-stubs, pep-561 [View on SkillFed](https://skillfed.io/packages/types-backports) · [View on PyPI](https://pypi.org/project/types-backports/)