types-Deprecated
Typing stubs for Deprecated
What it is and what it does
types-Deprecated is a type stub package that bridges the gap between the Deprecated library and Python type checkers. When you install it alongside Deprecated, type checkers like mypy and pyright can understand the types and signatures of Deprecated's decorators and functions, allowing them to validate your code that uses deprecation markers.
This is a pure stub package with no runtime dependencies—it exists solely to provide type information. It's maintained as part of the typeshed project, the canonical repository of type stubs for third-party packages, and is regenerated from typeshed's source to stay in sync with Deprecated~=1.3.1. The package requires Python 3.10 or later and has been tested against recent versions of the major type checkers.
Use it for:
- Enable mypy or pyright to type-check code that uses Deprecated's @deprecated decorator without type errors.
- Validate deprecation warnings and ensure deprecated functions are called correctly in a typed codebase.
- Integrate Deprecated into a strict type-checking CI/CD pipeline that requires full type coverage.
- Support IDE autocompletion and hover documentation for Deprecated's API in editors like VS Code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the Deprecated package, enabling type checkers like mypy, pyright, and ty to understand and validate code using Deprecated's deprecation decorators.
Yes, if you use the Deprecated package and run a type checker (mypy, pyright, or ty) in your project. Install it to eliminate type-checking errors and gain full IDE support for Deprecated's decorators. If you don't use a type checker or don't use Deprecated, it provides no value.
Install
types-deprecated on PyPI
pip
pip install types-deprecateduv
uv add types-deprecatedpoetry
poetry add types-deprecatedInstalling types-Deprecated
Before you install
Low friction install with no runtime dependencies. Actively maintained as part of typeshed, released recently (17 days ago), and tested against current versions of mypy 2.3.0, pyright 1.1.411, and ty 0.0.59.
License in practice
Apache-2.0 license is permissive and poses no restrictions on use, modification, or distribution in most contexts.
Quickstart
pip install types-Deprecated
# In your code using Deprecated:
from deprecated import deprecated
@deprecated(reason="Use new_function instead")
def old_function():
pass
Requires Python 3.10 or later. Type checking requires a compatible type checker (mypy, pyright, or ty) to be installed separately.
Verify before relying
- Whether this package is automatically installed as a dependency of Deprecated or must be installed separately for type checking.
- Whether type coverage is complete for all Deprecated~=1.3.1 APIs or if there are known gaps.
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 — 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 21,264,593/month — #1,005 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_deprecated-1.3.1.20260728-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-bleachProvides type stubs for the bleach HTML…
permissive · top 5,000 on PyPI
types-dateparserProvides type stubs for the dateparser package,…
permissive · top 5,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-shapelyProvides type stubs for the shapely package,…
permissive · top 15,000 on PyPI
DeprecatedProvides a @deprecated decorator to mark…
permissive · top 1,000 on PyPI
types-MarkdownProvides type stubs for the Markdown package,…
permissive · top 5,000 on PyPI
types-decoratorProvides type stubs for the `decorator`…
permissive · top 5,000 on PyPI
types-grpcioProvides type stubs for the grpcio package,…
permissive · top 5,000 on PyPI
tyA fast Python type checker and language server…
permissive · top 1,000 on PyPI