Skip to content

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

ci: Enable mypy static type checking and reslove errors

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

Triggered via pull request April 10, 2025 16:03
Status Failure
Total duration 3m 18s
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#L4192
Incompatible types in assignment (expression has type "Parameter", variable has type "None") [assignment]
lint: mypy: fms_mo/quant/quantizers.py#L4198
Incompatible types in assignment (expression has type "Size", variable has type "list[int]") [assignment]
lint: mypy: fms_mo/quant/quantizers.py#L4586
Too many arguments for "Mapping" [call-arg]
lint: mypy: fms_mo/quant/quantizers.py#L5380
Incompatible default for argument "perCh" (default has type "None", argument has type "int") [assignment]
lint: mypy: fms_mo/quant/quantizers.py#L5513
Returning Any from function declared to return "Tensor" [no-any-return]
lint: mypy: fms_mo/modules/conv.py#L1478
Unsupported operand types for - ("int" and "str") [operator]
lint: mypy: fms_mo/modules/conv.py#L1479
Unsupported operand types for - ("int" and "str") [operator]
lint: mypy: fms_mo/modules/conv.py#L1483
Unsupported operand types for > ("str" and "int") [operator]
lint: mypy: fms_mo/modules/conv.py#L1484
Argument "pad" to "pad" has incompatible type "str | tuple[int, ...]"; expected "Sequence[int]" [arg-type]