Fix alter.unbunch tests #119
ci.yaml
on: push
Matrix: test
Type Check
1m 0s
Success
0s
Annotations
30 errors and 3 warnings
Python 3.11 - ubuntu-latest - x64 - push
Process completed with exit code 1.
|
Python 3.10 - ubuntu-latest - x64 - push
Process completed with exit code 1.
|
Python 3.9 - ubuntu-latest - x64 - push
Process completed with exit code 1.
|
Type Check:
atomlib/alter.py#L95
"int" is not iterable
"__iter__" method not defined (reportGeneralTypeIssues)
|
Type Check:
atomlib/atoms.py#L714
Expression of type "tuple[str, ...]" cannot be assigned to declared type "Tuple[str]"
"tuple[str, ...]" is incompatible with "Tuple[str]"
Tuple size mismatch; expected 1 but received indeterminate (reportGeneralTypeIssues)
|
Type Check:
atomlib/io/cif.py#L131
Expression of type "int | NDArray[floating[Unknown]]" cannot be assigned to return type "NDArray[floating[Unknown]]"
Type "int | NDArray[floating[Unknown]]" cannot be assigned to type "NDArray[floating[Unknown]]"
"int" is incompatible with "NDArray[floating[Unknown]]" (reportGeneralTypeIssues)
|
Type Check:
atomlib/testing/__init__.py#L146
Argument of type "tuple[str] | tuple[str, ...]" cannot be assigned to parameter "baseline_images" of type "list[str] | None" in function "image_comparison" (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L163
Argument of type "ndarray[Unknown, Unknown]" cannot be assigned to parameter "left" of type "float | tuple[float, float] | None" in function "set_xlim"
Type "ndarray[Unknown, Unknown]" cannot be assigned to type "float | tuple[float, float] | None"
"ndarray[Unknown, Unknown]" is incompatible with "float"
"ndarray[Unknown, Unknown]" is incompatible with "tuple[float, float]"
"ndarray[Unknown, Unknown]" is incompatible with "None" (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L164
Argument of type "ndarray[Unknown, Unknown]" cannot be assigned to parameter "bottom" of type "float | tuple[float, float] | None" in function "set_ylim"
Type "ndarray[Unknown, Unknown]" cannot be assigned to type "float | tuple[float, float] | None"
"ndarray[Unknown, Unknown]" is incompatible with "float"
"ndarray[Unknown, Unknown]" is incompatible with "tuple[float, float]"
"ndarray[Unknown, Unknown]" is incompatible with "None" (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L207
No overloads for "add_axes" match the provided arguments (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L207
Argument of type "list[float]" cannot be assigned to parameter "rect" of type "tuple[float, float, float, float]" in function "add_axes"
"list[float]" is incompatible with "tuple[float, float, float, float]" (reportGeneralTypeIssues)
|
Type Check
8 errors
|
Type Check:
atomlib/alter.py#L95
"int" is not iterable
"__iter__" method not defined (reportGeneralTypeIssues)
|
Type Check:
atomlib/atoms.py#L714
Expression of type "tuple[str, ...]" cannot be assigned to declared type "Tuple[str]"
"tuple[str, ...]" is incompatible with "Tuple[str]"
Tuple size mismatch; expected 1 but received indeterminate (reportGeneralTypeIssues)
|
Type Check:
atomlib/io/cif.py#L131
Expression of type "int | NDArray[floating[Unknown]]" cannot be assigned to return type "NDArray[floating[Unknown]]"
Type "int | NDArray[floating[Unknown]]" cannot be assigned to type "NDArray[floating[Unknown]]"
"int" is incompatible with "NDArray[floating[Unknown]]" (reportGeneralTypeIssues)
|
Type Check:
atomlib/testing/__init__.py#L146
Argument of type "tuple[str] | tuple[str, ...]" cannot be assigned to parameter "baseline_images" of type "list[str] | None" in function "image_comparison" (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L163
Argument of type "ndarray[Unknown, Unknown]" cannot be assigned to parameter "left" of type "float | tuple[float, float] | None" in function "set_xlim"
Type "ndarray[Unknown, Unknown]" cannot be assigned to type "float | tuple[float, float] | None"
"ndarray[Unknown, Unknown]" is incompatible with "float"
"ndarray[Unknown, Unknown]" is incompatible with "tuple[float, float]"
"ndarray[Unknown, Unknown]" is incompatible with "None" (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L164
Argument of type "ndarray[Unknown, Unknown]" cannot be assigned to parameter "bottom" of type "float | tuple[float, float] | None" in function "set_ylim"
Type "ndarray[Unknown, Unknown]" cannot be assigned to type "float | tuple[float, float] | None"
"ndarray[Unknown, Unknown]" is incompatible with "float"
"ndarray[Unknown, Unknown]" is incompatible with "tuple[float, float]"
"ndarray[Unknown, Unknown]" is incompatible with "None" (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L207
No overloads for "add_axes" match the provided arguments (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L207
Argument of type "list[float]" cannot be assigned to parameter "rect" of type "tuple[float, float, float, float]" in function "add_axes"
"list[float]" is incompatible with "tuple[float, float, float, float]" (reportGeneralTypeIssues)
|
Type Check
8 errors
|
Type Check:
atomlib/alter.py#L95
"int" is not iterable
"__iter__" method not defined (reportGeneralTypeIssues)
|
Type Check:
atomlib/atoms.py#L714
Expression of type "tuple[str, ...]" cannot be assigned to declared type "Tuple[str]"
"tuple[str, ...]" is incompatible with "Tuple[str]"
Tuple size mismatch; expected 1 but received indeterminate (reportGeneralTypeIssues)
|
Type Check:
atomlib/io/cif.py#L131
Expression of type "int | NDArray[floating[Unknown]]" cannot be assigned to return type "NDArray[floating[Unknown]]"
Type "int | NDArray[floating[Unknown]]" cannot be assigned to type "NDArray[floating[Unknown]]"
"int" is incompatible with "NDArray[floating[Unknown]]" (reportGeneralTypeIssues)
|
Type Check:
atomlib/testing/__init__.py#L146
Argument of type "tuple[str] | tuple[str, ...]" cannot be assigned to parameter "baseline_images" of type "list[str] | None" in function "image_comparison" (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L163
Argument of type "ndarray[Unknown, Unknown]" cannot be assigned to parameter "left" of type "float | tuple[float, float] | None" in function "set_xlim"
Type "ndarray[Unknown, Unknown]" cannot be assigned to type "float | tuple[float, float] | None"
"ndarray[Unknown, Unknown]" is incompatible with "float"
"ndarray[Unknown, Unknown]" is incompatible with "tuple[float, float]"
"ndarray[Unknown, Unknown]" is incompatible with "None" (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L164
Argument of type "ndarray[Unknown, Unknown]" cannot be assigned to parameter "bottom" of type "float | tuple[float, float] | None" in function "set_ylim"
Type "ndarray[Unknown, Unknown]" cannot be assigned to type "float | tuple[float, float] | None"
"ndarray[Unknown, Unknown]" is incompatible with "float"
"ndarray[Unknown, Unknown]" is incompatible with "tuple[float, float]"
"ndarray[Unknown, Unknown]" is incompatible with "None" (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L207
No overloads for "add_axes" match the provided arguments (reportGeneralTypeIssues)
|
Type Check:
atomlib/visualize/__init__.py#L207
Argument of type "list[float]" cannot be assigned to parameter "rect" of type "tuple[float, float, float, float]" in function "add_axes"
"list[float]" is incompatible with "tuple[float, float, float, float]" (reportGeneralTypeIssues)
|
Type Check
8 errors
|
Type Check:
atomlib/bbox.py#L32
Import "AffineTransform3D" is not accessed (reportUnusedImport)
|
Type Check:
atomlib/bbox.py#L32
Import "AffineTransform3D" is not accessed (reportUnusedImport)
|
Type Check:
atomlib/bbox.py#L32
Import "AffineTransform3D" is not accessed (reportUnusedImport)
|