Files
typeshed/stubs/click
Eric Traut e2967a8bee Eliminated the use of "bare" TypeVars in stdlib stubs (#5041)
Eliminated the use of "bare" TypeVars (i.e. a TypeVar that appears only once) within generic methods. While not considered an error in PEP 484, these are a common source of bugs in code, and some type checkers (including pytype and pyright) flag them as errors.

Co-authored-by: Eric Traut <erictr@microsoft.com>
2021-02-27 19:43:45 -08:00
..
2021-01-29 17:23:35 +00:00

click 7.0

__init__.pyi is almost a copy of click/__init__.py. It's a shortcut module anyway in the actual sources so it works well with minimal changes.

The types are pretty complete but they were created mostly for public API use so some internal modules (_compat) or functions (core._bashcomplete) are deliberately missing. If you feel the need to add those, pull requests accepted.

Speaking of pull requests, it would be great if the option decorators informed the type checker on what types the command callback should accept.