Improve the existing TimSort implementation #16061
Annotations
10 errors
|
Ruff (UP047):
sorts/tim_sort.py#L64
sorts/tim_sort.py:64:5: UP047 Generic function `tim_sort` should use type parameters
|
|
Ruff (UP006):
sorts/tim_sort.py#L43
sorts/tim_sort.py:43:45: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (UP006):
sorts/tim_sort.py#L43
sorts/tim_sort.py:43:33: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (UP006):
sorts/tim_sort.py#L43
sorts/tim_sort.py:43:17: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (RUF005):
sorts/tim_sort.py#L39
sorts/tim_sort.py:39:18: RUF005 Consider `[*arr[:j], key, *arr[j:i], *arr[i + 1:]]` instead of concatenation
|
|
Ruff (UP006):
sorts/tim_sort.py#L29
sorts/tim_sort.py:29:37: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (UP006):
sorts/tim_sort.py#L29
sorts/tim_sort.py:29:25: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (UP047):
sorts/tim_sort.py#L29
sorts/tim_sort.py:29:5: UP047 Generic function `insertion_sort` should use type parameters
|
|
Ruff (UP006):
sorts/tim_sort.py#L6
sorts/tim_sort.py:6:24: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (UP035):
sorts/tim_sort.py#L1
sorts/tim_sort.py:1:1: UP035 `typing.List` is deprecated, use `list` instead
|