Closed
Description
Click's simple example https://github.com/pallets/click#a-simple-example doesn't pass mypy 1.4.1 since 8.1.4. With click 8.1.3 the example did pass. This affects not only the simple example but also existing projects that use click. I ran mypy on one of my projects and everything passed, ran it 30 minutes later and saw failures out of the blue. Click 8.1.4 was published to PyPI between my checks.
To reproduce:
- Save the simple example as click.py
pip install mypy==1.4.1 click==8.1.3
mypy click.py
This is the output:
click.py:3: error: Argument 1 has incompatible type "Callable[[Any, Any], Any]"; expected <nothing> [arg-type]
click.py:12: error: <nothing> not callable [misc]
Environment:
- Python version: 3.11
- Click version: 8.1.4
Metadata
Metadata
Assignees
Labels
No labels