Code review: fix 5 oldest code files with type hints and improvements #17709
Annotations
6 errors
|
ruff
Process completed with exit code 1.
|
|
ruff (F401):
sorts/pancake_sort.py#L17
sorts/pancake_sort.py:17:20: F401 `typing.Any` imported but unused
help: Remove unused import: `typing.Any`
|
|
ruff (F401):
sorts/pancake_sort.py#L16
sorts/pancake_sort.py:16:29: F401 `collections.abc.Collection` imported but unused
help: Remove unused import: `collections.abc.Collection`
|
|
ruff (F401):
searches/sentinel_linear_search.py#L15
searches/sentinel_linear_search.py:15:29: F401 `collections.abc.Sequence` imported but unused
help: Remove unused import: `collections.abc.Sequence`
|
|
ruff (E501):
graphs/g_topological_sort.py#L22
graphs/g_topological_sort.py:22:89: E501 Line too long (93 > 88)
|
|
ruff (F401):
graphs/g_topological_sort.py#L16
graphs/g_topological_sort.py:16:29: F401 `collections.abc.Sequence` imported but unused
help: Remove unused import: `collections.abc.Sequence`
|