types-retry
Typing stubs for retry
What it is and what it does
types-retry is a type stub package that provides static type annotations for the retry library. It allows type checkers like mypy and pyright to understand the types and signatures of retry's decorators and utility functions, catching type errors at development time rather than runtime. The stubs are maintained as part of the typeshed project and are tested against mypy 1.20.0 and pyright 1.1.408.
This package is purely for development and type-checking; it contains no runtime code and has no dependencies. You install it alongside the actual retry package to enable type safety in code that uses retry's retry decorator and related functions. It targets retry version 0.9.* and is kept in sync with typeshed's main branch.
Use it for:
- Enable mypy or pyright to type-check code that decorates functions with @retry without false positives or missing type information.
- Catch type errors in retry configuration (e.g., invalid exception types or delay parameters) before runtime.
- Provide IDE autocomplete and inline documentation for retry's API when using a type-aware editor.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the retry package, enabling static type checkers like mypy and pyright to validate code that uses retry's retry decorators and functions.
Yes, if you use the retry package and run a static type checker in your development workflow. It has no runtime cost, no dependencies, and is actively maintained. If you don't use a type checker or don't use retry, there's no reason to install it.
Install
types-retry on PyPI
pip
pip install types-retryuv
uv add types-retrypoetry
poetry add types-retryInstalling types-retry
Before you install
Low install friction; a pure stub package with no runtime dependencies. Maintained actively as part of typeshed, with recent updates as of 2026-04-08.
License in practice
Licensed under Apache-2.0 (permissive), so you can use this in commercial and proprietary projects without restriction.
Quickstart
pip install types-retry
# In your code using retry, type checkers will now understand:
from retry import retry
@retry()
def my_function():
pass
Requires Python 3.10 or later. Only useful when running a type checker (mypy, pyright) as part of your development workflow; does not affect runtime behavior.
Verify before relying
- Whether this stub package is kept in sync with all active versions of the retry package beyond 0.9.*
- Whether installing this stub automatically satisfies type-checking for all retry decorators and exception classes
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 — 128 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,530,381/month — #1,726 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_retry-0.9.9.20260408-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-passlibProvides type stubs for the passlib…
permissive · top 5,000 on PyPI
types-pyfarmhashProvides type hints for the pyfarmhash hashing…
permissive · top 15,000 on PyPI
types-tabulateProvides type hints for the tabulate package,…
permissive · top 5,000 on PyPI
types-webencodingsProvides type hints for the webencodings…
permissive · top 5,000 on PyPI
types-chevronProvides type hints for the chevron Mustache…
permissive · top 15,000 on PyPI
types-toposortProvides type hints for the toposort package,…
permissive · top 15,000 on PyPI
types-grpcio-statusProvides type stubs for grpcio-status, enabling…
permissive · top 15,000 on PyPI
types-defusedxmlProvides type hints for the defusedxml library,…
permissive · top 5,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-grpcio-reflectionProvides type hints for grpcio-reflection,…
permissive · top 15,000 on PyPI