Skip to content

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

ci: Enable mypy static type checking and reslove errors

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

Triggered via pull request April 10, 2025 17:50
Status Failure
Total duration 3m 16s
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#L4587
Too many arguments for "Mapping" [call-arg]
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]
lint: mypy: fms_mo/modules/conv.py#L1515
Returning Any from function declared to return "Tensor" [no-any-return]
lint: mypy: fms_mo/modules/bmm.py#L473
Returning Any from function declared to return "Tensor" [no-any-return]
lint: mypy: fms_mo/custom_ext_kernels/utils.py#L79
Incompatible types in assignment (expression has type "Callable[[str | OpOverload | CustomOpDef, str | Sequence[str] | None, Callable[..., Any] | None, DefaultNamedArg(Library | None, 'lib')], Any]", variable has type "Callable[[Any, DefaultNamedArg(Any, 'device_types'), DefaultNamedArg(Any, 'func')], Any]") [assignment]
lint: mypy: fms_mo/custom_ext_kernels/utils.py#L80
Incompatible types in assignment (expression has type "Callable[[str | OpOverload | CustomOpDef, Callable[..., Any] | None, DefaultNamedArg(Library | None, 'lib'), DefaultNamedArg(int, '_stacklevel')], Any]", variable has type "Callable[[Any, DefaultNamedArg(Any, 'func')], Any]") [assignment]