Files
typeshed/stubs/click
Giel van Schijndel b0c6598fba fix(stubs/click): don't force autocompleter to accept anything as context (#5265)
* fix(stubs/click): don't force autocompleter to accept anything as context

Additionally it's enough if it's return value is iterable (e.g. a
generator).
2021-04-30 18:03:17 +03: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.