Open KotlinIsland opened 2 years ago
a: list[int] | list[str] b: list[int] | list[str] = sorted(a) # error: found list[int | str]
Maybe something like:
L = TypeVar("L", bound=list[SupportsRichComparison]) @overload def sorted(__iterable: L) -> L: ...
but this is invalid
Maybe something like:
but this is invalid