The `types-backports` library provides automatically generated PEP 561 type stub packages for various 'backports' libraries. These stubs enable static type checkers like mypy, PyCharm, and pytype to validate code that utilizes features backported to older Python versions. The package is generated from the Python typeshed repository. The primary package itself is largely a meta-package, with more specific stubs often residing in `types-backports.*` packages. The current version is 0.1.3, released in June 2021, and its active development for general backports has largely ceased.
pip install types-backportsNo compatibility data collected yet for this library.
The `types-backports` package provides type information for runtime 'backports' libraries. It does not typically expose symbols for direct import itself. To leverage it, simply install it alongside the 'backports' library you are using, and your type checker (e.g., mypy) will automatically pick up the provided type stubs for improved code analysis.
Avoid installing `types-backports` directly unless specifically required by a dependency. If you need stubs for a particular 'backports' library, search for `types-` followed by the specific library name (e.g., `types-backports.ssl-match-hostname`). If the runtime package is `py.typed`, no separate stub package is needed.
If you require stubs for `backports.ssl_match_hostname`, install `types-backports.ssl-match-hostname` instead of `types-backports`. Note that `types-backports.ssl-match-hostname` itself is also unmaintained as of March 2023.
Do not install `types-backports` (or any `types-*` package) for `backports.zoneinfo`. The `backports.zoneinfo` package itself contains the necessary type hints.
No dependency data recorded yet.