skillfed

types-retry

Typing stubs for retry

types-retry v0.9.9.20260408 7.5M downloads/30d#1,726 on PyPI37
Permissive license Apache-2.0 Active released

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

uv

uv add types-retry

poetry

poetry add types-retry

Installing 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

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

Tags

type stubs for retryretry type hintsmypy stubs retrystatic type checking retrypyright retry annotations
type-stubstyping

More Software Development packages