Files
typeshed/stubs/click
Jon Dufresne 4166a416f6 Correct return type of click.testing.CliRunner.isolation() (#5103)
The method returns a tuple of io.BytesIO objects that hold the temporary
stdin and stdout. By correcting the type, it allows usages of
io.BytesIO.getvalue() to pass type checking.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-05-16 21:45:00 +02:00
..
2021-05-12 19:17:42 +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.