Skip to content

TypeVarTuple equality check for tuples #6888

@cdce8p

Description

@cdce8p

Describe the bug
https://peps.python.org/pep-0646/#type-variable-tuple-equality

Code or Screenshots
Code example from the PEP, see link above.

from typing import TypeVarTuple
Ts = TypeVarTuple("Ts")

def foo(arg1: tuple[*Ts], arg2: tuple[*Ts]): ...

a = (0,)
b = ('0',)
foo(a, b)  # This should be an error

VS Code extension or command-line
pyright 1.1.344

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions