skillfed

types-Deprecated

Typing stubs for Deprecated

types-deprecated v1.3.1.20260728 21.3M downloads/30d#1,005 on PyPI37
Permissive license Apache-2.0 Active released

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

uv

uv add types-deprecated

poetry

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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs for deprecatedtyping stubs deprecationmypy deprecated packagetype checking deprecated decoratorstypeshed deprecatedpyright deprecated support
type-stubstypeshed

More Software Development packages