Skip to content

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

ci: Enable mypy static type checking and reslove errors

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

Triggered via pull request April 10, 2025 13:46
Status Failure
Total duration 3m 6s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

lint.yml

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

Annotations

10 errors
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#L3919
Incompatible types in assignment (expression has type "Tensor", variable has type "float") [assignment]
lint: mypy: fms_mo/quant/quantizers.py#L3920
Incompatible types in assignment (expression has type "Tensor", variable has type "int") [assignment]
lint: mypy: fms_mo/quant/quantizers.py#L3923
Unsupported target for indexed assignment ("float") [index]
lint: mypy: fms_mo/quant/quantizers.py#L3923
Unsupported target for indexed assignment ("int") [index]
lint: mypy: fms_mo/quant/quantizers.py#L3927
"float" has no attribute "view" [attr-defined]
lint: mypy: fms_mo/quant/quantizers.py#L3928
"int" has no attribute "view" [attr-defined]
lint: mypy: fms_mo/quant/quantizers.py#L3930
"float" has no attribute "view" [attr-defined]
lint: mypy: fms_mo/quant/quantizers.py#L3931
"int" has no attribute "view" [attr-defined]
lint: mypy: fms_mo/quant/quantizers.py#L3935
Incompatible types in assignment (expression has type "int | float", variable has type "Tensor") [assignment]