types-decorator
Typing stubs for decorator
Decision gist · record as of 2026-08-14
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
Alternatives
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.
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.
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
| 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 33 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,323,965 / month, #4,061 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None 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
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
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.
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.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
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.
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