Skip to content

ci: Enable mypy static type checking and reslove errors #193

ci: Enable mypy static type checking and reslove errors

ci: Enable mypy static type checking and reslove errors #193

Triggered via pull request April 10, 2025 13:42
Status Failure
Total duration 4m 19s
Artifacts

lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

11 errors
lint: ruff
Process completed with exit code 1.
lint: mypy: fms_mo/utils/utils.py#L242
Returning Any from function declared to return "tuple[Any, ...] | list[Any] | Tensor | dict[str, Any]" [no-any-return]
lint: mypy: fms_mo/quant/quantizers.py#L3918
Incompatible types in assignment (expression has type "Tensor", variable has type "float") [assignment]
lint: mypy: fms_mo/quant/quantizers.py#L3919
Incompatible types in assignment (expression has type "Tensor", variable has type "int") [assignment]
lint: mypy: fms_mo/quant/quantizers.py#L3922
Unsupported target for indexed assignment ("float") [index]
lint: mypy: fms_mo/quant/quantizers.py#L3922
Unsupported target for indexed assignment ("int") [index]
lint: mypy: fms_mo/quant/quantizers.py#L3926
"float" has no attribute "view" [attr-defined]
lint: mypy: fms_mo/quant/quantizers.py#L3927
"int" has no attribute "view" [attr-defined]
lint: mypy: fms_mo/quant/quantizers.py#L3929
"float" has no attribute "view" [attr-defined]
lint: mypy: fms_mo/quant/quantizers.py#L3930
"int" has no attribute "view" [attr-defined]
lint: mypy: fms_mo/quant/quantizers.py#L3934
Incompatible types in assignment (expression has type "int | float", variable has type "Tensor") [assignment]