ci: Enable mypy static type checking and reslove errors #200
Annotations
10 errors
|
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/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]
|
|
lint: mypy:
fms_mo/custom_ext_kernels/utils.py#L535
Missing return statement [empty-body]
|
|
lint: mypy:
fms_mo/custom_ext_kernels/utils.py#L561
Missing return statement [empty-body]
|
|
lint: mypy:
fms_mo/custom_ext_kernels/utils.py#L590
Missing return statement [empty-body]
|
|
lint: mypy:
fms_mo/custom_ext_kernels/utils.py#L851
Incompatible types in assignment (expression has type "Callable[[VarArg(Any), KwArg(Any)], Any]", variable has type Module) [assignment]
|