sorted() does not enforce comparable items in an iterable of tuples #13297
Open
Description
sorted()
does not enforce that every item in the tuple must be comparable:
items: list[tuple[int, object]] = [(1, object()), (1, object())]
sorted(items)
Lines 1762 to 1767 in e5c5318