Skip to content

Binary Addition of two binary strings input to produce binary string output of any length #1006

Binary Addition of two binary strings input to produce binary string output of any length

Binary Addition of two binary strings input to produce binary string output of any length #1006

Triggered via pull request September 15, 2026 22:08
Status Success
Total duration 19s
Artifacts

ty.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
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 (unresolved-attribute): scripts/validate_solutions.py#L34
scripts/validate_solutions.py:34:5: unresolved-attribute: Attribute `loader` is not defined on `None` in union `ModuleSpec | None`
ty (unresolved-attribute): scripts/validate_solutions.py#L34
scripts/validate_solutions.py:34:5: unresolved-attribute: Attribute `exec_module` is not defined on `None` in union `Loader | None`
ty (invalid-argument-type): scripts/validate_solutions.py#L33
scripts/validate_solutions.py:33:46: invalid-argument-type: Argument to function `module_from_spec` is incorrect: Expected `ModuleSpec`, found `ModuleSpec | None` info: element `None` of union `ModuleSpec | None` is not assignable to `ModuleSpec` stdlib/_frozen_importlib.pyi:45:5: info: Function defined here stdlib/_frozen_importlib.pyi:45:22: Parameter declared here
ty (unresolved-import): scripts/validate_solutions.py#L19
scripts/validate_solutions.py:19:8: unresolved-import: Cannot resolve imported module `pytest` info: Searched in the following paths during module resolution: info: 1. vendored://stdlib (stdlib typeshed stubs vendored by ty) info: 2. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib/python3.14/site-packages (site-packages) info: 3. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib64/python3.14/site-packages (site-packages) info: 4. /home/runner/work/Python/Python/.venv/lib/python3.14/site-packages (site-packages) info: 5. /home/runner/work/Python/Python/.venv/lib64/python3.14/site-packages (site-packages) info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
ty (invalid-assignment): maths/trailing_zeroes.py#L33
maths/trailing_zeroes.py:33:9: invalid-assignment: Object of type `float` is not assignable to `int` maths/trailing_zeroes.py:6:26: Declared type
ty (unresolved-import): maths/test_factorial.py#L10
maths/test_factorial.py:10:6: unresolved-import: Cannot resolve imported module `maths.factorial` info: Searched in the following paths during module resolution: info: 1. vendored://stdlib (stdlib typeshed stubs vendored by ty) info: 2. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib/python3.14/site-packages (site-packages) info: 3. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib64/python3.14/site-packages (site-packages) info: 4. /home/runner/work/Python/Python/.venv/lib/python3.14/site-packages (site-packages) info: 5. /home/runner/work/Python/Python/.venv/lib64/python3.14/site-packages (site-packages) info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
ty (unresolved-import): maths/test_factorial.py#L8
maths/test_factorial.py:8:8: unresolved-import: Cannot resolve imported module `pytest` info: Searched in the following paths during module resolution: info: 1. vendored://stdlib (stdlib typeshed stubs vendored by ty) info: 2. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib/python3.14/site-packages (site-packages) info: 3. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib64/python3.14/site-packages (site-packages) info: 4. /home/runner/work/Python/Python/.venv/lib/python3.14/site-packages (site-packages) info: 5. /home/runner/work/Python/Python/.venv/lib64/python3.14/site-packages (site-packages) info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
ty (unresolved-import): maths/test_abs.py#L10
maths/test_abs.py:10:6: unresolved-import: Cannot resolve imported module `maths.abs` info: Searched in the following paths during module resolution: info: 1. vendored://stdlib (stdlib typeshed stubs vendored by ty) info: 2. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib/python3.14/site-packages (site-packages) info: 3. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib64/python3.14/site-packages (site-packages) info: 4. /home/runner/work/Python/Python/.venv/lib/python3.14/site-packages (site-packages) info: 5. /home/runner/work/Python/Python/.venv/lib64/python3.14/site-packages (site-packages) info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
ty (unresolved-import): maths/test_abs.py#L8
maths/test_abs.py:8:8: unresolved-import: Cannot resolve imported module `pytest` info: Searched in the following paths during module resolution: info: 1. vendored://stdlib (stdlib typeshed stubs vendored by ty) info: 2. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib/python3.14/site-packages (site-packages) info: 3. /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpUCj5B9/lib64/python3.14/site-packages (site-packages) info: 4. /home/runner/work/Python/Python/.venv/lib/python3.14/site-packages (site-packages) info: 5. /home/runner/work/Python/Python/.venv/lib64/python3.14/site-packages (site-packages) info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
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
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
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 (redundant-condition): machine_learning/dimensionality_reduction.py#L146
machine_learning/dimensionality_reduction.py:146:8: redundant-condition: Method `ndarray.any` is always truthy: Did you mean to call this method? help: Replace with `features.any(...)`