Skip to content

Does not detect type incompatibility with tuple type #7115

@erictraut

Description

@erictraut

The following code should result in a type violation, but it does not currently.

def func2(t3: tuple[int, ...]):
    v2: tuple[int, *tuple[int, ...]] = t3

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