skillfed

types-click

Typing stubs for click

types-click v7.1.8 2.2M downloads/30d#3,194 on PyPI5,108
Permissive license Apache-2.0 license Active released

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

uv

uv add types-click

poetry

poetry add types-click

Installing 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

License :: OSI Approved :: Apache Software LicenseTyping :: Typed

Tags

type stubs for clickclick type hintsmypy click supportstatic type checking clickclick typing annotationspep 561 stubs
type-stubslegacy-support

More Software Development packages