Big spring cleaning #656
Annotations
8 errors and 3 warnings
run_type_checking:
src/data/nih.py#L100
Argument of type "Unknown | NDArray[float64] | csr_matrix" cannot be assigned to parameter "data" of type "ListLikeU | DataFrame | dict[Any, Any] | Iterable[ListLikeU | tuple[Hashable, ListLikeU] | dict[Any, Any]] | None" in function "__new__" (reportArgumentType)
|
run_type_checking:
src/labelling/encoder.py#L42
Argument of type "str | None" cannot be assigned to parameter "download_root" of type "str" in function "load"
Type "str | None" cannot be assigned to type "str"
"None" is incompatible with "str" (reportArgumentType)
|
run_type_checking:
src/labelling/kmeans.py#L128
Argument of type "Any | NDArray[float64]" cannot be assigned to parameter "init" of type "str" in function "__init__"
Type "Any | NDArray[float64]" cannot be assigned to type "str"
"NDArray[float64]" is incompatible with "str" (reportArgumentType)
|
run_type_checking:
src/labelling/kmeans.py#L128
Argument of type "Literal[1]" cannot be assigned to parameter "n_init" of type "str" in function "__init__"
"Literal[1]" is incompatible with "str" (reportArgumentType)
|
run_type_checking:
src/labelling/kmeans.py#L131
Argument of type "int" cannot be assigned to parameter "n_init" of type "str" in function "__init__"
"int" is incompatible with "str" (reportArgumentType)
|
run_type_checking:
src/labelling/kmeans.py#L134
Argument of type "tuple[NDArray[int32], Unknown] | NDArray[int32]" cannot be assigned to parameter "y_pred" of type "NDArray[int32]" in function "evaluate"
Type "tuple[NDArray[int32], Unknown] | NDArray[int32]" cannot be assigned to type "NDArray[int32]"
"tuple[NDArray[int32], Unknown]" is incompatible with "NDArray[int32]" (reportArgumentType)
|
run_type_checking:
src/labelling/kmeans.py#L144
Expression of type "tuple[NDArray[int32], Unknown] | NDArray[int32]" cannot be assigned to return type "NDArray[Unknown]"
Type "tuple[NDArray[int32], Unknown] | NDArray[int32]" cannot be assigned to type "NDArray[Unknown]"
"tuple[NDArray[int32], Unknown]" is incompatible with "NDArray[Unknown]" (reportReturnType)
|
run_type_checking
7 errors
|
lint_with_ruff
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
format_with_ruff
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run_type_checking
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|