# a.py
import click
@click.command()
def test():
pass
test()
Run
$ mypy a.py
a.py:9: error: <nothing> not callable
Found 1 error in 1 file (checked 1 source file)
This used to pass with Click 8.0.4
Environment:
- Python version: 3.10.2
- Click version: 8.1.0