Skip to content

<nothing> not callable error in Mypy with Click 8.1.0 #2227

@NiklasRosenstein

Description

@NiklasRosenstein
# 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions