Repository navigation
Fix typo in README.md #2217
Annotations
7 errors, 6 warnings, and 1 notice
|
ty (invalid-method-override):
sorts/patience_sort.py#L29
sorts/patience_sort.py:29:9: invalid-method-override: Invalid override of method `__lt__`: Definition is incompatible with `list.__lt__`
stdlib/builtins.pyi:3094:9: `list.__lt__` defined here
info: parameter `value` has an incompatible type: `list[T@Stack]` is not assignable to `Stack[T@Stack]`
info: This violates the Liskov Substitution Principle
|
|
ty (shadowed-type-variable):
sorts/bogo_sort.py#L46
sorts/bogo_sort.py:46:9: shadowed-type-variable: Generic function `is_sorted` uses type variable `T` already bound by an enclosing scope
sorts/bogo_sort.py:24:5: Type variable `T` is bound in this enclosing scope
|
|
ty (invalid-assignment):
sorts/benchmark_sorts.py#L41
sorts/benchmark_sorts.py:41:58: invalid-assignment: Object of type `dict[str, ((list[int], /) -> Sequence[int]) | ([T](arr: list[T]) -> list[T]) | ([T](lst: list[T]) -> list[T]) | ([T](unsorted: list[T]) -> list[T]) | ([T](collection: list[T]) -> list[T])]` is not assignable to `dict[str, (list[int], /) -> Sequence[int]]`
sorts/benchmark_sorts.py:41:8: Declared type
info: element `[T](arr: list[T]) -> list[T]` of union `((list[int], /) -> Sequence[int]) | ([T](arr: list[T]) -> list[T]) | ([T](lst: list[T]) -> list[T]) | ([T](unsorted: list[T]) -> list[T]) | ([T](collection: list[T]) -> list[T])` is not assignable to `(list[int], /) -> Sequence[int]`
info: └── the first parameter has an incompatible type: `list[int]` is not assignable to `list[T@cocktail_shaker_sort]`
info: └── type `int` is not assignable to protocol `Comparable`
info: └── protocol member `__lt__` is incompatible
info: └── parameter `other` has an incompatible type: `object` is not assignable to `int`
|
|
ty (invalid-assignment):
other/dancing_links.py#L69
other/dancing_links.py:69:17: invalid-assignment: Object of type `DLXNode` is not assignable to attribute `up` of type `ColumnNode`
|
|
ty (invalid-assignment):
other/dancing_links.py#L68
other/dancing_links.py:68:17: invalid-assignment: Object of type `DLXNode` is not assignable to attribute `down` of type `ColumnNode`
|
|
ty (invalid-type-arguments):
data_structures/heap/heap.py#L253
data_structures/heap/heap.py:253:20: invalid-type-arguments: Type `int` is not assignable to upper bound `Comparable` of type variable `T@Heap`
data_structures/heap/heap.py:14:12: Type variable defined here
info: type `int` is not assignable to protocol `Comparable`
info: └── protocol member `__gt__` is incompatible
info: └── parameter `other` has an incompatible type: `object` is not assignable to `int`
|
|
ty (invalid-assignment):
computer_vision/mean_threshold.py#L24
computer_vision/mean_threshold.py:24:13: invalid-assignment: Cannot assign to a subscript on an object of type `None`
info: The full type of the subscripted object is `PixelAccess | None`
info: `None` does not have a `__setitem__` method.
|
|
ty (redundant-condition):
web_programming/current_weather.py#L33
web_programming/current_weather.py:33:8: redundant-condition: Object of type `Literal[""]` is always falsy
web_programming/current_weather.py:34:9: This statement is unreachable
|
|
ty (redundant-condition):
web_programming/current_weather.py#L27
web_programming/current_weather.py:27:8: redundant-condition: Object of type `Literal[""]` is always falsy
web_programming/current_weather.py:28:9: This statement is unreachable
|
|
ty (renamed-rule):
pyproject.toml#L327
pyproject.toml:327:7: renamed-rule: Rule `unresolved-import` has been renamed to `import-not-found`
|
|
ty (redundant-condition):
matrix/matrix_operation.py#L44
matrix/matrix_operation.py:44:13: redundant-condition: Expression `_verify_matrix_sizes(matrix_a, matrix_b)` is always truthy (has type `tuple[tuple[int, int], tuple[int, int]]`)
|
|
ty (deprecated):
graphs/multi_heuristic_astar.py#L82
graphs/multi_heuristic_astar.py:82:20: deprecated: The class `chararray` is deprecated: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
|
|
ty (truthiness-test-of-iterable):
divide_and_conquer/convex_hull.py#L120
divide_and_conquer/convex_hull.py:120:8: truthiness-test-of-iterable: Variable `list_of_tuples` might be truthy even if its length is 0 (has type `list[Point] | Iterable[list[float]]`)
divide_and_conquer/convex_hull.py:89:21: Inferred as `list[Point] | Iterable[list[float]]` due to this annotation
info: `list[Point] | Iterable[list[float]]` objects can be generators, and generators are truthy even when empty
help: Test the length of the iterable instead of its truthiness
|
|
ty
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|