ci: Enable mypy static type checking and reslove errors #196
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
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]
|