Skip to content

Refactor FilterType class and improve type hints #2220

Refactor FilterType class and improve type hints

Refactor FilterType class and improve type hints #2220

Triggered via pull request November 10, 2026 12:37
Status Success
Total duration 19s
Artifacts –

ty.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 7 warnings, and 1 notice
ty (invalid-syntax): audio_filters/show_response.py#L55
audio_filters/show_response.py:55:1: invalid-syntax: Unexpected indentation
ty (invalid-syntax): audio_filters/show_response.py#L54
audio_filters/show_response.py:54:1: invalid-syntax: unindent does not match any outer indentation level
ty (unresolved-reference): audio_filters/show_response.py#L40
audio_filters/show_response.py:40:24: unresolved-reference: Name `np` used when not defined
ty (unresolved-reference): audio_filters/show_response.py#L39
audio_filters/show_response.py:39:24: unresolved-reference: Name `np` used when not defined
ty (unresolved-reference): audio_filters/show_response.py#L29
audio_filters/show_response.py:29:18: unresolved-reference: Name `np` used when not defined
ty (empty-body): audio_filters/show_response.py#L19
audio_filters/show_response.py:19:41: empty-body: Function always implicitly returns `None`, which is not assignable to return type `float` info: Consider changing the return annotation to `-> None` or adding a `return` statement info: Functions with empty bodies and non-`None` return types are only permitted: info: - in stub files info: - in `if TYPE_CHECKING` blocks info: - as methods on protocol classes info: - or as `@abstractmethod`-decorated methods on abstract classes
ty (unresolved-reference): audio_filters/show_response.py#L18
audio_filters/show_response.py:18:6: unresolved-reference: Name `abstractmethod` used when not defined
ty (unresolved-reference): audio_filters/show_response.py#L17
audio_filters/show_response.py:17:18: unresolved-reference: Name `Protocol` used when not defined
ty (empty-body): audio_filters/show_response.py#L8
audio_filters/show_response.py:8:41: empty-body: Function always implicitly returns `None`, which is not assignable to return type `float` info: Consider changing the return annotation to `-> None` or adding a `return` statement info: Functions with empty bodies and non-`None` return types are only permitted: info: - in stub files info: - in `if TYPE_CHECKING` blocks info: - as methods on protocol classes info: - or as `@abstractmethod`-decorated methods on abstract classes
ty (unresolved-reference): audio_filters/show_response.py#L7
audio_filters/show_response.py:7:18: unresolved-reference: Name `Protocol` used when not defined
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 (renamed-rule): pyproject.toml#L326
pyproject.toml:326:7: renamed-rule: Rule `unresolved-attribute` has been renamed to `missing-attribute`
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"