ci: Enable mypy static type checking and reslove errors #193
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]
|