Improve binary search doc #14456
+215
−222
Open
Improve binary search doc #14456
Annotations
10 errors
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L328
searches/binary_search.py:328:5: UP047 Generic function `_binary_search_recursive` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L292
searches/binary_search.py:292:5: UP047 Generic function `binary_search_by_recursion` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L264
searches/binary_search.py:264:5: UP047 Generic function `binary_search_with_duplicates` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L238
searches/binary_search.py:238:5: UP047 Generic function `binary_search_std_lib` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L203
searches/binary_search.py:203:5: UP047 Generic function `binary_search` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L170
searches/binary_search.py:170:5: UP047 Generic function `insort_right` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L142
searches/binary_search.py:142:5: UP047 Generic function `insort_left` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L96
searches/binary_search.py:96:5: UP047 Generic function `bisect_right` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L55
searches/binary_search.py:55:5: UP047 Generic function `bisect_left` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L17
searches/binary_search.py:17:11: RUF022 `__all__` is not sorted
help: Apply an isort-style sorting to `__all__`
|
Loading