--- id: types-deprecated version: "1.3.1.20260728" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-Deprecated — Typing stubs for Deprecated License: permissive · Maintenance: active · Downloads: 21.3M/mo ## 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 above — 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 pip install types-deprecated uv add types-deprecated poetry add types-deprecated ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 21.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs for deprecated, typing stubs deprecation, mypy deprecated package, type checking deprecated decorators, typeshed deprecated, pyright deprecated support, type-stubs, typeshed [View on SkillFed](https://skillfed.io/packages/types-deprecated) · [View on PyPI](https://pypi.org/project/types-deprecated/)