Fix TypeVar for decorators that handle Commands
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The old type var would throw away the types of Callables. ``` import click @click.option("--name", prompt="Your name", help="The person to greet.") def hello(name: str) -> None: ... reveal_type(hello) # note: Revealed type is 'def (*Any, **Any) -> Any' ``` With this small adjustment mypy now knows that it's a `'def (name: builtins.str)'`
authored by David Euresti · committed by David Lord · parent 490ac01 · Browse files · 2 files+3 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+3 added−1 removed
- other:+3 added−1 removed