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