$npx skillfedfor your agent

types-decorator

Typing stubs for decorator

With conditionsPyPI Software DevelopmentReleased Jul 20261.3M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — types_decorator-5.2.0.20260712-py3-none-any.whl
v5.2.0.20260712 · released 2026-07-12 · Python >=3.10

Yes, if you are using `decorator` version 5.2.x and want type checking support. No, if you are already on `decorator` 5.3.0 or later—uninstall this stub and use the built-in types instead. The package is actively maintained and has no known vulnerabilities, but its utility is narrowly scoped to a specific decorator version range.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Only useful if you are using `decorator` version 5.2.x; decorator 5.3.0+ includes its own type annotations and this stub is not needed.
  • Low friction install with no runtime dependencies.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license; no restrictions on use, modification, or distribution in most contexts.

last release 2026-07-12 (33 days) · last repo commit 2026-08-14 · 37 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,323,965 downloads/mo, #4,061 on PyPI

Verify before relying

pip install types-decorator

# Then use decorator in your code; type checkers will now understand its types
import decorator

@decorator.decorator
def my_decorator(func, *args, **kwargs):
    return func(*args, **kwargs)
  • Whether mypy 2.2.0 and pyright 1.1.411 represent current or outdated versions of those type checkers.
  • Whether there are known issues or gaps in type coverage beyond what the typeshed commit hash documents.
Same gist for agents: .md · .json

What it is and what it does

This package is a type stub—a collection of type annotations without runtime code—that teaches type checkers how to understand the `decorator` library. When you install it alongside `decorator` version 5.2.x, tools like mypy and pyright can now check your code for type errors when you use decorators, catching mistakes before runtime. The stubs are maintained as part of the typeshed project, a centralized repository of type information for popular Python packages.

However, this stub is primarily useful for older versions of `decorator`. Since `decorator` version 5.3.0, the package includes its own type annotations, making this stub redundant. If you are already using `decorator` 5.3.0 or later, you should uninstall `types-decorator` and rely on the built-in types instead.

Use it for

  • Type-checking code that uses `decorator` 5.2.x with mypy or pyright in a CI/CD pipeline.
  • Enabling IDE autocomplete and type hints for decorator patterns in projects locked to `decorator` 5.2.x.
  • Validating decorator-based function wrappers in a codebase before upgrading to newer `decorator` versions.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are using `decorator` version 5.2.x and want type checking support.

No, if you are already on `decorator` 5.3.0 or later—uninstall this stub and use the built-in types instead. The package is actively maintained and has no known vulnerabilities, but its utility is narrowly scoped to a specific decorator version range.

Install

types-decorator on PyPI

Before you install

Low friction install with no runtime dependencies. Actively maintained as part of typeshed; last release 33 days ago. Note: the `decorator` package itself includes type annotations since version 5.3.0, making this stub package redundant for newer decorator versions.

Requires Python 3.10 or later. Only useful if you are using `decorator` version 5.2.x; decorator 5.3.0+ includes its own type annotations and this stub is not needed.

License in practice

Apache-2.0 permissive license; no restrictions on use, modification, or distribution in most contexts.

Quickstart

pip install types-decorator

# Then use decorator in your code; type checkers will now understand its types
import decorator

@decorator.decorator
def my_decorator(func, *args, **kwargs):
    return func(*args, **kwargs)

Verify before relying

  • Whether mypy 2.2.0 and pyright 1.1.411 represent current or outdated versions of those type checkers.
  • Whether there are known issues or gaps in type coverage beyond what the typeshed commit hash documents.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 33 days since the last release
Last repo commit
First released
Downloads1,323,965 / month, #4,061 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Programming Language :: Python :: 3Typing :: Stubs Only

Evidence: types_decorator-5.2.0.20260712-py3-none-any.whl

Tags

Capabilities
type stubs for decoratordecorator type hintsmypy decorator annotationspyright decorator typestyping stubs typeshed
Topics
type-stubstypeshed

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “type stubs for decorator”

  • types-decoratorProvides type stubs for the `decorator` package, enabling type…
  • types-smorestProvides type stubs for flask-smorest, enabling static type checking…
  • types-retryProvides type hints for the retry package, enabling static type…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also types-auth0-python · types-Markdown · types-requests · types-croniter · types-click-spinner · types-Flask-Cors · types-gdb · types-mock · types-icalendar · types-cachetools