--- id: types-retry version: "0.9.9.20260408" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-retry — Typing stubs for retry License: permissive · Maintenance: active · Downloads: 7.5M/mo ## 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 above — 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 pip install types-retry uv add types-retry 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_current - Install friction: low - Maintenance: active - Downloads: 7.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs for retry, retry type hints, mypy stubs retry, static type checking retry, pyright retry annotations, type-stubs, typing [View on SkillFed](https://skillfed.io/packages/types-retry) · [View on PyPI](https://pypi.org/project/types-retry/)