Skip to content

Emit diagnostics for unsupported comparisons involving non-fixed-length tuples #1741

@AlexWaygood

Description

@AlexWaygood

Pyright, mypy and pyrefly all emit diagnostics on all four comparisons here, but ty currently does not emit any diagnostics on this snippet:

def f(
    a: tuple[int, ...],
    b: tuple[str, ...],
    c: tuple[str]
):
    a < b
    b < a
    a < c
    c < a

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions