Skip to content

(🐞) Bad error message when using unbound ParamSpec in a Callable #13476

Closed
@KotlinIsland

Description

@KotlinIsland
from typing import ParamSpec, Callable

P = ParamSpec("P")
a: Callable[P, None]  # error: The first argument to Callable must be a list of types, parameter specification, or "..."

playground

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions