types-click
Typing stubs for click
What it is and what it does
types-click is a type stub package that bridges the gap between older versions of click and modern static type checkers. It provides type information for the click library, allowing tools like mypy, PyCharm, and pytype to understand and validate code that uses click's API. This is particularly useful for projects that rely on click for command-line interface development but need strict type checking.
The package is generated from typeshed, a centralized repository of type stubs maintained by the Python community. However, since click version 8.0 added native type annotations, this package is now primarily useful for legacy projects still using click 7.x or earlier. For modern click versions, the built-in type information makes types-click redundant.
Use it for:
- Type-checking legacy click 7.x codebases with mypy or similar tools without upgrading click.
- Enabling IDE type hints and autocomplete in PyCharm for older click-based CLI projects.
- Validating click usage in projects that enforce strict type checking but cannot upgrade to click 8.0+.
- Supporting pytype or other type checkers that need explicit stubs for click 7.x compatibility.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides PEP 561 type stubs for the click package, enabling static type checkers like mypy and PyCharm to understand click code.
No, unless you are stuck on click 7.x or earlier and need type checking support. For click 8.0 and later, uninstall this package—click now includes its own type annotations. The package has not been updated since 2021-11-23, and the description itself recommends uninstalling it if you use click 8.0+.
Install
types-click on PyPI
pip
pip install types-clickuv
uv add types-clickpoetry
poetry add types-clickInstalling types-click
Before you install
Low install friction with a single wheel dependency. The package is actively maintained via typeshed, though it has not received a release since 2021-11-23; note that click itself has included type annotations since version 8.0, making this package redundant for recent click versions.
License in practice
Licensed under Apache-2.0, a permissive open-source license with no significant restrictions on use or distribution.
Quickstart
pip install types-click
# Then use with mypy or another type checker on code that imports click
import click
Only useful if you are using click version 7.x or earlier; click 8.0+ includes its own type annotations, making this package unnecessary.
Verify before relying
- Whether this package is still maintained or if typeshed updates are still being applied to the click stubs.
- Compatibility with the latest versions of type checkers (mypy, PyCharm, pytype) that may have evolved since the last release.
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,725 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,239,041/month — #3,194 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_click-7.1.8-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
pymupdf-stubsProvides type stubs for PyMuPDF to enable…
permissive · top 15,000 on PyPI
types-WerkzeugProvides PEP 561 type stubs for Werkzeug,…
permissive · top 5,000 on PyPI
types-attrsProvides PEP 561 type stubs for the attrs…
permissive · top 15,000 on PyPI
types-atomicwritesProvides type stubs for the atomicwrites…
permissive · top 15,000 on PyPI
types-futuresProvides type stubs for the futures package,…
permissive · top 15,000 on PyPI
pybind11-stubgenGenerates PEP 561 type stubs for Python binary…
permissive · top 5,000 on PyPI
types-orjsonProvides PEP 561 type stubs for the orjson…
permissive · top 15,000 on PyPI
types-filelockProvides type stubs for the filelock package to…
permissive · top 15,000 on PyPI
types-enum34Provides type stubs for the enum34 package,…
permissive · top 15,000 on PyPI
types-backportsProvides PEP 561 type stubs for the backports…
permissive · top 15,000 on PyPI