Enhance bubble sort docstrings and type hints #14075
Annotations
6 errors
ruff
Process completed with exit code 1.
|
Ruff (UP047):
sorts/bubble_sort.py#L60
sorts/bubble_sort.py:60:5: UP047 Generic function `bubble_sort_recursive` should use type parameters
|
Ruff (UP047):
sorts/bubble_sort.py#L7
sorts/bubble_sort.py:7:5: UP047 Generic function `bubble_sort_iterative` should use type parameters
|
Ruff (F401):
sorts/bubble_sort.py#L1
sorts/bubble_sort.py:1:20: F401 `typing.Sequence` imported but unused
|
Ruff (I001):
sorts/bubble_sort.py#L1
sorts/bubble_sort.py:1:1: I001 Import block is un-sorted or un-formatted
|
Ruff (UP035):
sorts/bubble_sort.py#L1
sorts/bubble_sort.py:1:1: UP035 Import from `collections.abc` instead: `Sequence`
|