Skip to content

Allow Callable with a TypeVarTuple in the middle #15412

@ilevkivskyi

Description

@ilevkivskyi

PEP 646 explicitly allows Callable[[T, *Ts, S], int], but mypy currently prohibits it with an error like "Positional arg cannot follow var arg". I think we should support this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions