<!-- This issue tracker is a tool to address bugs in Click itself. Please use Pallets Discord or Stack Overflow for questions about your own code. Replace this comment with a clear outline of what the bug is. --> ```py # 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