Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard MSONAtoms definition behind ASE package availability #3645

Merged
merged 5 commits into from Feb 23, 2024

Conversation

ml-evs
Copy link
Contributor

@ml-evs ml-evs commented Feb 22, 2024

Summary

Hopefully closes #3644. Not sure if this is the approach you want to take.

Todo

It would be nice to add a test or linter rule that would have caught the initial issue.

@janosh
Copy link
Member

janosh commented Feb 22, 2024

It would be nice to add a test or linter rule that would have caught the initial issue.

that 👍

@ml-evs
Copy link
Contributor Author

ml-evs commented Feb 22, 2024

It would be nice to add a test or linter rule that would have caught the initial issue.

that 👍

As opposed to a linter rule that only catches my fix ;)

pymatgen/io/ase.py:64: error: Name "MSONAtoms" already defined on line 46  [no-redef]
Found 1 error in 1 file (checked 279 source files)

@Andrew-S-Rosen
Copy link
Member

Makes sense. Thanks!

@ml-evs
Copy link
Contributor Author

ml-evs commented Feb 22, 2024

I'm actually a bit confused why mypy passes in its current state on master... when I run locally following the same format as the CI (removing cache etc.) I get hundreds of errors (but not the one in question here interestingly 😅)

@ml-evs
Copy link
Contributor Author

ml-evs commented Feb 22, 2024

I'm actually a bit confused why mypy passes in its current state on master... when I run locally following the same format as the CI (removing cache etc.) I get hundreds of errors (but not the one in question here interestingly 😅)

If anyone is interested, click details below... I guess the reason is that mypy is called in CI without any other dependencies installed, so will not check any third-party types (like numpy etc.). The pre-commit version of mypy is also skipped in the CI. Perhaps installing something like types-all would catch some of these without the overhead of reinstalling everything.

Found 788 errors in 81 files (checked 279 source files)
$ mypy pymatgen
pymatgen/util/coord.py:117: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[floating[Any]]]", variable has type "float")  [assignment]
pymatgen/util/coord.py:134: error: Argument 1 to "zip" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Union[int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]]]]"  [arg-type]
pymatgen/util/coord.py:134: error: Argument 1 to "zip" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Any]"  [arg-type]
pymatgen/util/coord.py:134: error: Argument 2 to "zip" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Union[int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]]]]"  [arg-type]
pymatgen/util/coord.py:134: error: Argument 2 to "zip" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Any]"  [arg-type]
pymatgen/util/coord.py:134: error: Argument "key" to "sorted" has incompatible type "Callable[[tuple[Union[int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]]], Union[int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]]]]], Union[int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]]]]"; expected "Callable[[tuple[Union[int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]]], Union[int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]]]]], Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]]"  [arg-type]
pymatgen/util/coord.py:134: error: Incompatible return value type (got "Union[int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]]]", expected "Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]")  [return-value]
pymatgen/util/coord.py:139: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [type-var]
pymatgen/util/coord.py:139: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes  [str-bytes-safe]
pymatgen/util/coord.py:139: error: Value of type variable "SupportsRichComparisonT" of "max" cannot be "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [type-var]
pymatgen/util/coord.py:139: error: Argument 1 to "min" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/util/coord.py:139: error: Argument 1 to "max" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/util/coord.py:227: error: Incompatible return value type (got "list[Never]", expected "ndarray[Any, Any]")  [return-value]
pymatgen/util/coord.py:273: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[floating[Any]]]", variable has type "float")  [assignment]
pymatgen/electronic_structure/core.py:146: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "Sequence[float]")  [assignment]
pymatgen/electronic_structure/core.py:148: error: No overload variant of "__call__" of "_FloatOp" matches argument type "Sequence[float]"  [call-overload]
pymatgen/electronic_structure/core.py:148: note: Possible overload variants:
pymatgen/electronic_structure/core.py:148: note:     def __call__(self, bool, /) -> floating[Any]
pymatgen/electronic_structure/core.py:148: note:     def __call__(self, int, /) -> floating[Any]
pymatgen/electronic_structure/core.py:148: note:     def __call__(self, float, /) -> floating[Any]
pymatgen/electronic_structure/core.py:148: note:     def __call__(self, complex, /) -> complexfloating[Any, Any]
pymatgen/electronic_structure/core.py:148: note:     def [_NBit2 <: NBitBase] __call__(self, Union[integer[_NBit2], floating[_NBit2]], /) -> floating[Union[Any, _NBit2]]
pymatgen/electronic_structure/core.py:425: error: Argument 1 to "Magmom" has incompatible type "object"; expected "Union[float, Sequence[float], ndarray[Any, Any], Magmom]"  [arg-type]
pymatgen/core/lattice.py:364: error: Signature of "from_dict" incompatible with supertype "MSONable"  [override]
pymatgen/core/lattice.py:364: note:      Superclass:
pymatgen/core/lattice.py:364: note:          @classmethod
pymatgen/core/lattice.py:364: note:          def from_dict(cls, d: Any) -> Any
pymatgen/core/lattice.py:364: note:      Subclass:
pymatgen/core/lattice.py:364: note:          @classmethod
pymatgen/core/lattice.py:364: note:          def from_dict(cls, dct: dict[Any, Any], fmt: Optional[str] = ..., **kwargs: Any) -> Any
pymatgen/core/lattice.py:1807: error: Argument 1 to "append" of "list" has incompatible type "tuple[Any, float, int, tuple[Any, ...]]"; expected "tuple[ndarray[Any, Any], float, int, ndarray[Any, Any]]"  [arg-type]
pymatgen/symmetry/groups.py:124: error: Argument 1 to "from_rotation_and_translation" of "SymmOp" has incompatible type "SymmOp"; expected "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [arg-type]
pymatgen/symmetry/groups.py:364: error: List item 0 has incompatible type "SymmOp"; expected "ndarray[Any, Any]"  [list-item]
pymatgen/symmetry/groups.py:370: error: Argument 1 to "append" of "list" has incompatible type "SymmOp"; expected "ndarray[Any, Any]"  [arg-type]
pymatgen/symmetry/groups.py:371: error: Incompatible return value type (got "tuple[list[ndarray[Any, Any]], list[ndarray[Any, Any]]]", expected "tuple[list[ndarray[Any, Any]], list[SymmOp]]")  [return-value]
pymatgen/core/operations.py:491: error: "SymmOp" has no attribute "time_reversal"  [attr-defined]
pymatgen/core/structure.py:343: error: Signature of "__getitem__" incompatible with supertype "Sequence"  [override]
pymatgen/core/structure.py:343: note:      Superclass:
pymatgen/core/structure.py:343: note:          @overload
pymatgen/core/structure.py:343: note:          def __getitem__(self, int, /) -> Any
pymatgen/core/structure.py:343: note:          @overload
pymatgen/core/structure.py:343: note:          def __getitem__(self, slice, /) -> Sequence[Any]
pymatgen/core/structure.py:343: note:      Subclass:
pymatgen/core/structure.py:343: note:          def __getitem__(self, Union[int, slice], /) -> Site
pymatgen/core/structure.py:684: error: Invalid index type "Species" for "dict[Element, float]"; expected type "Element"  [index]
pymatgen/core/structure.py:837: error: Item "Structure" of "Union[Structure, Molecule]" has no attribute "calc"  [union-attr]
pymatgen/core/structure.py:837: error: Item "Molecule" of "Union[Structure, Molecule]" has no attribute "calc"  [union-attr]
pymatgen/core/structure.py:838: error: Item "Structure" of "Union[Structure, Molecule]" has no attribute "dynamics"  [union-attr]
pymatgen/core/structure.py:838: error: Item "Molecule" of "Union[Structure, Molecule]" has no attribute "dynamics"  [union-attr]
pymatgen/core/structure.py:1338: error: Argument 1 to "SpacegroupAnalyzer" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:1359: error: Argument 1 to "fit_anonymous" of "StructureMatcher" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:1359: error: Argument 2 to "fit_anonymous" of "StructureMatcher" has incompatible type "Union[IStructure, Structure]"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:1360: error: Argument 1 to "fit" of "StructureMatcher" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:1360: error: Argument 2 to "fit" of "StructureMatcher" has incompatible type "Union[IStructure, Structure]"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:1434: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:1467: error: Incompatible types in assignment (expression has type "Site", variable has type "PeriodicSite")  [assignment]
pymatgen/core/structure.py:1468: error: Argument 1 to "distance" of "PeriodicSite" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/core/structure.py:1649: error: Incompatible types in assignment (expression has type "list[Site]", variable has type "Optional[Sequence[PeriodicSite]]")  [assignment]
pymatgen/core/structure.py:1650: error: Value of type variable "_SCT" of "ascontiguousarray" cannot be "float"  [type-var]
pymatgen/core/structure.py:1650: error: Item "None" of "Optional[Sequence[PeriodicSite]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/core/structure.py:1867: error: Incompatible types in assignment (expression has type "list[Site]", variable has type "Optional[Sequence[PeriodicSite]]")  [assignment]
pymatgen/core/structure.py:1872: error: Argument 1 to "len" has incompatible type "Optional[Sequence[PeriodicSite]]"; expected "Sized"  [arg-type]
pymatgen/core/structure.py:1880: error: Value of type "Optional[Sequence[PeriodicSite]]" is not indexable  [index]
pymatgen/core/structure.py:1906: error: Argument 1 to "len" has incompatible type "Optional[Sequence[PeriodicSite]]"; expected "Sized"  [arg-type]
pymatgen/core/structure.py:1955: error: Incompatible types in assignment (expression has type "list[Site]", variable has type "Optional[Sequence[PeriodicSite]]")  [assignment]
pymatgen/core/structure.py:1956: error: Item "None" of "Optional[Sequence[PeriodicSite]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/core/structure.py:1966: error: Argument 2 to "zip" has incompatible type "Optional[Sequence[PeriodicSite]]"; expected "Iterable[PeriodicSite]"  [arg-type]
pymatgen/core/structure.py:2158: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:2186: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:2594: error: List item 0 has incompatible type "IStructure"; expected "Structure"  [list-item]
pymatgen/core/structure.py:2606: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "list[Site]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/core/structure.py:2641: error: Argument 1 to "structure_to_abivars" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:2708: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:2735: error: Argument 1 to "CifWriter" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:2739: error: Argument 1 to "CifWriter" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:2743: error: Incompatible types in assignment (expression has type "Poscar", variable has type "CifWriter")  [assignment]
pymatgen/core/structure.py:2743: error: Argument 1 to "Poscar" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:2757: error: Argument 1 to "XSF" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:2770: error: Argument 1 to "Mcsqs" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:2778: error: Argument 1 to "Prismatic" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:2796: error: Argument 1 to "structure_to_str" of "ResIO" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:2804: error: Incompatible types in assignment (expression has type "AtomConfig", variable has type "CifWriter")  [assignment]
pymatgen/core/structure.py:2804: error: Argument 1 to "AtomConfig" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:2893: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/core/structure.py:2896: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "Structure"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/core/structure.py:3003: error: Argument 1 to "SpacegroupAnalyzer" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/core/structure.py:3098: error: Argument 1 to "tuple" has incompatible type "list[Site]"; expected "Iterable[PeriodicSite]"  [arg-type]
pymatgen/core/structure.py:3482: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/core/structure.py:3482: error: Argument 1 to "range" has incompatible type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "SupportsIndex"  [arg-type]
pymatgen/core/structure.py:3483: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/core/structure.py:3483: error: Argument 1 to "range" has incompatible type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "SupportsIndex"  [arg-type]
pymatgen/core/structure.py:3693: error: Definition of "__getitem__" in base class "SiteCollection" is incompatible with definition in base class "MutableSequence"  [misc]
pymatgen/core/structure.py:3848: error: "Site" has no attribute "lattice"  [attr-defined]
pymatgen/core/structure.py:3975: error: "PeriodicNeighbor" has no attribute "__iter__" (not iterable)  [attr-defined]
pymatgen/core/structure.py:3975: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/core/structure.py:3978: error: "PeriodicNeighbor" has no attribute "__iter__" (not iterable)  [attr-defined]
pymatgen/core/structure.py:4011: error: Incompatible types in assignment (expression has type "IMolecule", variable has type "Molecule")  [assignment]
pymatgen/core/structure.py:4041: error: "Site" has no attribute "__iter__"; maybe "__str__"? (not iterable)  [attr-defined]
pymatgen/core/structure.py:4066: error: Incompatible types in assignment (expression has type "list[PeriodicSite]", variable has type "list[Site]")  [assignment]
pymatgen/core/structure.py:4066: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
pymatgen/core/structure.py:4066: note: Consider using "Sequence" instead, which is covariant
pymatgen/core/structure.py:4193: error: "Site" has no attribute "frac_coords"  [attr-defined]
pymatgen/core/structure.py:4308: error: Unsupported operand types for * ("Structure" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/core/structure.py:4308: error: Unsupported operand types for * ("Structure" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/core/structure.py:4308: error: Unsupported operand types for * ("Structure" and "float")  [operator]
pymatgen/core/structure.py:4308: error: Unsupported operand types for * ("Structure" and "complex")  [operator]
pymatgen/core/structure.py:4308: error: Unsupported operand types for * ("Structure" and "str")  [operator]
pymatgen/core/structure.py:4308: error: Unsupported operand types for * ("Structure" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/core/structure.py:4308: note: Right operand is of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"
pymatgen/core/structure.py:4420: error: Incompatible return value type (got "Union[Structure, Molecule, tuple[Union[Structure, Molecule], Union[Any, Any]]]", expected "Union[Structure, tuple[Structure, Union[Any, Any]]]")  [return-value]
pymatgen/core/structure.py:4461: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4463: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4465: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4469: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4471: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4475: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4479: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4483: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4487: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4491: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/structure.py:4499: error: Definition of "__getitem__" in base class "SiteCollection" is incompatible with definition in base class "MutableSequence"  [misc]
pymatgen/core/structure.py:4886: error: Incompatible types in assignment (expression has type "IMolecule", variable has type "Molecule")  [assignment]
pymatgen/core/structure.py:4947: error: Incompatible return value type (got "Union[Structure, Molecule, tuple[Union[Structure, Molecule], Union[Any, Any]]]", expected "Union[Molecule, tuple[Molecule, Any]]")  [return-value]
pymatgen/util/plotting.py:179: error: Argument 1 to "polyfit" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Union[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]], _NestedSequence[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]]], bool, int, float, _NestedSequence[Union[bool, int, float]]]"  [arg-type]
pymatgen/util/plotting.py:179: error: Argument 2 to "polyfit" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Union[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]], _NestedSequence[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]]], bool, int, float, _NestedSequence[Union[bool, int, float]]]"  [arg-type]
pymatgen/util/plotting.py:180: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [type-var]
pymatgen/util/plotting.py:180: error: Argument 1 to "linspace" has incompatible type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Union[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]], _NestedSequence[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]]], bool, int, float, _NestedSequence[Union[bool, int, float]]]"  [arg-type]
pymatgen/util/plotting.py:180: error: Argument 1 to "min" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/util/plotting.py:180: error: Value of type variable "SupportsRichComparisonT" of "max" cannot be "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [type-var]
pymatgen/util/plotting.py:180: error: Argument 2 to "linspace" has incompatible type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Union[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]], _NestedSequence[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]]], bool, int, float, _NestedSequence[Union[bool, int, float]]]"  [arg-type]
pymatgen/util/plotting.py:180: error: Argument 1 to "max" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/util/plotting.py:360: error: Argument 1 to "to_rgba" of "ScalarMappable" has incompatible type "Element"; expected "ndarray[Any, Any]"  [arg-type]
pymatgen/util/plotting.py:361: error: Argument 1 to "_decide_fontcolor" has incompatible type "ndarray[Any, Any]"; expected "tuple[Any, ...]"  [arg-type]
pymatgen/util/plotting.py:456: error: Argument "xy" to "annotate" has incompatible type "list[Any]"; expected "tuple[float, float]"  [arg-type]
pymatgen/util/plotting.py:457: error: Argument "xy" to "annotate" has incompatible type "list[Any]"; expected "tuple[float, float]"  [arg-type]
pymatgen/util/plotting.py:458: error: Argument "xy" to "annotate" has incompatible type "list[Any]"; expected "tuple[float, float]"  [arg-type]
pymatgen/util/plotting.py:538: error: Argument "xy" to "annotate" has incompatible type "list[object]"; expected "tuple[float, float]"  [arg-type]
pymatgen/io/res.py:307: error: Argument 1 to "_res_from_structure" of "ResWriter" has incompatible type "Union[Structure, ComputedStructureEntry]"; expected "Structure"  [arg-type]
pymatgen/io/res.py:307: error: Argument 1 to "_res_from_entry" of "ResWriter" has incompatible type "Union[Structure, ComputedStructureEntry]"; expected "ComputedStructureEntry"  [arg-type]
pymatgen/io/res.py:370: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/io/common.py:58: error: "ndarray[Any, Any]" has no attribute "items"; maybe "item"?  [attr-defined]
pymatgen/io/common.py:60: error: Need type annotation for "data_aug"  [var-annotated]
pymatgen/io/ase.py:54: error: Signature of "from_dict" incompatible with supertype "MSONable"  [override]
pymatgen/io/ase.py:54: note:      Superclass:
pymatgen/io/ase.py:54: note:          @classmethod
pymatgen/io/ase.py:54: note:          def from_dict(cls, d: Any) -> Any
pymatgen/io/ase.py:54: note:      Subclass:
pymatgen/io/ase.py:54: note:          def from_dict(d) -> MSONAtoms
pymatgen/io/ase.py:281: error: "Structure" has no attribute "calc"  [attr-defined]
pymatgen/io/ase.py:350: error: Argument "cls" to "get_structure" of "AseAtomsAdaptor" has incompatible type "type[Molecule]"; expected "type[Structure]"  [arg-type]
pymatgen/io/ase.py:363: error: "Structure" has no attribute "set_charge_and_spin"  [attr-defined]
pymatgen/io/ase.py:365: error: Incompatible return value type (got "Structure", expected "Molecule")  [return-value]
pymatgen/io/vasp/inputs.py:134: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/io/vasp/inputs.py:134: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "Structure"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/io/vasp/inputs.py:137: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/io/vasp/inputs.py:443: error: Argument 1 to "append" of "list" has incompatible type "list[Any]"; expected "ndarray[Any, Any]"  [arg-type]
pymatgen/io/abinit/abiobjects.py:234: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "list[Any]")  [assignment]
pymatgen/electronic_structure/dos.py:1263: error: Argument 3 to "CompleteDos" has incompatible type "dict[Site, dict[Orbital, dict[Spin, Any]]]"; expected "Mapping[PeriodicSite, Mapping[Orbital, Mapping[Spin, Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]]]"  [arg-type]
pymatgen/electronic_structure/dos.py:1279: error: Invalid index type "Site" for "Mapping[PeriodicSite, Mapping[Orbital, Mapping[Spin, Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]]]"; expected type "PeriodicSite"  [index]
pymatgen/electronic_structure/dos.py:1409: error: Argument 3 to "LobsterCompleteDos" has incompatible type "dict[Site, dict[Any, dict[Spin, Any]]]"; expected "Mapping[PeriodicSite, Mapping[Orbital, Mapping[Spin, Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]]]"  [arg-type]
pymatgen/analysis/structure_matcher.py:949: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/analysis/phase_diagram.py:426: error: Set comprehension has incompatible type Set[Union[Element, Species, DummySpecies]]; expected Set[Element]  [misc]
pymatgen/analysis/phase_diagram.py:607: error: "Entry" has no attribute "name"  [attr-defined]
pymatgen/analysis/phase_diagram.py:695: error: No overload variant of "zip" matches argument types "Simplex", "Any"  [call-overload]
pymatgen/analysis/phase_diagram.py:695: note: Possible overload variants:
pymatgen/analysis/phase_diagram.py:695: note:     def [_T_co] __new__(cls) -> zip[Any]
pymatgen/analysis/phase_diagram.py:695: note:     def [_T_co, _T1] __new__(cls, Iterable[_T1], /) -> zip[tuple[_T1]]
pymatgen/analysis/phase_diagram.py:695: note:     def [_T_co, _T1, _T2] __new__(cls, Iterable[_T1], Iterable[_T2], /) -> zip[tuple[_T1, _T2]]
pymatgen/analysis/phase_diagram.py:695: note:     def [_T_co, _T1, _T2, _T3] __new__(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], /) -> zip[tuple[_T1, _T2, _T3]]
pymatgen/analysis/phase_diagram.py:695: note:     def [_T_co, _T1, _T2, _T3, _T4] __new__(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], Iterable[_T4], /) -> zip[tuple[_T1, _T2, _T3, _T4]]
pymatgen/analysis/phase_diagram.py:695: note:     def [_T_co, _T1, _T2, _T3, _T4, _T5] __new__(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], Iterable[_T4], Iterable[_T5], /) -> zip[tuple[_T1, _T2, _T3, _T4, _T5]]
pymatgen/analysis/phase_diagram.py:695: note:     def [_T_co] __new__(cls, Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], /, *iterables: Iterable[Any]) -> zip[tuple[Any, ...]]
pymatgen/analysis/phase_diagram.py:828: error: Argument 1 to "PhaseDiagram" has incompatible type "list[Entry]"; expected "Union[Sequence[PDEntry], set[PDEntry]]"  [arg-type]
pymatgen/analysis/phase_diagram.py:828: error: Argument "elements" to "PhaseDiagram" has incompatible type "list[Union[Element, Species, DummySpecies]]"; expected "Sequence[Element]"  [arg-type]
pymatgen/analysis/phase_diagram.py:929: error: Argument 1 to "PhaseDiagram" has incompatible type "set[Union[Entry, Any]]"; expected "Union[Sequence[PDEntry], set[PDEntry]]"  [arg-type]
pymatgen/analysis/phase_diagram.py:1614: error: Set comprehension has incompatible type Set[Union[Element, Species, DummySpecies]]; expected Set[Element]  [misc]
pymatgen/analysis/phase_diagram.py:1757: error: Invalid index type "frozenset[Union[Element, Species]]" for "dict[frozenset[Element], PhaseDiagram]"; expected type "frozenset[Element]"  [index]
pymatgen/analysis/phase_diagram.py:1982: error: "PDEntry" has no attribute "decomposition"  [attr-defined]
pymatgen/analysis/phase_diagram.py:2176: error: Argument 1 to "get_form_energy_per_atom" of "PhaseDiagram" has incompatible type "Entry"; expected "PDEntry"  [arg-type]
pymatgen/analysis/phase_diagram.py:2278: error: Item "None" of "Union[Any, Figure, None]" has no attribute "show"  [union-attr]
pymatgen/analysis/phase_diagram.py:2280: error: Item "Axes" of "Union[Any, Axes]" has no attribute "show"  [union-attr]
pymatgen/analysis/phase_diagram.py:2296: error: Item "SubFigure" of "Union[Any, Figure, SubFigure, None]" has no attribute "set_size_inches"  [union-attr]
pymatgen/analysis/phase_diagram.py:2296: error: Item "None" of "Union[Any, Figure, SubFigure, None]" has no attribute "set_size_inches"  [union-attr]
pymatgen/analysis/phase_diagram.py:2297: error: Item "SubFigure" of "Union[Any, Figure, SubFigure, None]" has no attribute "savefig"  [union-attr]
pymatgen/analysis/phase_diagram.py:2297: error: Item "None" of "Union[Any, Figure, SubFigure, None]" has no attribute "savefig"  [union-attr]
pymatgen/analysis/phase_diagram.py:2300: error: Item "Axes" of "Union[Any, Axes]" has no attribute "write_image"  [union-attr]
pymatgen/symmetry/kpath.py:926: error: Incompatible types in assignment (expression has type "Composition", variable has type "list[Composition]")  [assignment]
pymatgen/symmetry/kpath.py:928: error: Argument 1 to "index" of "list" has incompatible type "list[Composition]"; expected "Union[str, Element, Species, DummySpecies]"  [arg-type]
pymatgen/symmetry/kpath.py:931: error: Argument 1 to "append" of "list" has incompatible type "list[Composition]"; expected "Union[str, Element, Species, DummySpecies]"  [arg-type]
pymatgen/io/cif.py:1123: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/io/cif.py:1129: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/electronic_structure/bandstructure.py:742: error: Argument 1 to "append" of "list" has incompatible type "floating[Any]"; expected "float"  [arg-type]
pymatgen/io/pwmat/inputs.py:366: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/io/pwmat/inputs.py:392: error: Argument "species" to "Structure" has incompatible type "ndarray[Any, Any]"; expected "Sequence[Union[str, Element, Species, DummySpecies, dict[Any, Any], Composition]]"  [arg-type]
pymatgen/io/pwmat/inputs.py:393: error: Argument "coords" to "Structure" has incompatible type "ndarray[Any, Any]"; expected "Sequence[Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/io/pwmat/outputs.py:256: error: Function "numpy.core.multiarray.array" is not valid as a type  [valid-type]
pymatgen/io/pwmat/outputs.py:256: note: Perhaps you need "Callable[...]" or a callback protocol?
pymatgen/io/pwmat/outputs.py:257: error: Function "numpy.core.multiarray.array" is not valid as a type  [valid-type]
pymatgen/io/pwmat/outputs.py:257: note: Perhaps you need "Callable[...]" or a callback protocol?
pymatgen/io/pwmat/outputs.py:258: error: Function "numpy.core.multiarray.array" is not valid as a type  [valid-type]
pymatgen/io/pwmat/outputs.py:258: note: Perhaps you need "Callable[...]" or a callback protocol?
pymatgen/io/pwmat/outputs.py:263: error: Value of type np.array? is not indexable  [index]
pymatgen/io/pwmat/outputs.py:264: error: Unsupported target for indexed assignment (np.array?)  [index]
pymatgen/core/trajectory.py:171: error: Incompatible return value type (got "Union[Structure, Trajectory]", expected "Structure")  [return-value]
pymatgen/core/trajectory.py:186: error: Incompatible return value type (got "Union[Molecule, Trajectory]", expected "Molecule")  [return-value]
pymatgen/core/trajectory.py:293: error: Incompatible types in "yield" (actual type "Union[Molecule, Structure, Trajectory]", expected type "Union[Structure, Molecule]")  [misc]
pymatgen/core/trajectory.py:326: error: Argument 1 to "Molecule" has incompatible type "list[Union[str, Element, Species, DummySpecies, Composition]]"; expected "Sequence[Union[str, Element, Species, DummySpecies]]"  [arg-type]
pymatgen/core/trajectory.py:417: error: Item "Trajectory" of "Union[Molecule, Structure, Trajectory]" has no attribute "reduced_formula"  [union-attr]
pymatgen/core/trajectory.py:421: error: Item "Structure" of "Union[Site, Structure, Molecule]" has no attribute "specie"  [union-attr]
pymatgen/core/trajectory.py:421: error: Item "Molecule" of "Union[Site, Structure, Molecule]" has no attribute "specie"  [union-attr]
pymatgen/core/trajectory.py:423: error: Item "Structure" of "Union[Site, Structure, Molecule]" has no attribute "specie"  [union-attr]
pymatgen/core/trajectory.py:423: error: Item "Molecule" of "Union[Site, Structure, Molecule]" has no attribute "specie"  [union-attr]
pymatgen/vis/structure_vtk.py:216: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "Structure"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/vis/structure_vtk.py:217: error: "IStructure" has no attribute "make_supercell"  [attr-defined]
pymatgen/vis/structure_vtk.py:266: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/vis/structure_vtk.py:296: error: "IStructure" has no attribute "center_of_mass"  [attr-defined]
pymatgen/vis/structure_vtk.py:299: error: "IStructure" has no attribute "center_of_mass"  [attr-defined]
pymatgen/phonon/thermal_displacements.py:53: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/thermal_displacements.py:56: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/thermal_displacements.py:77: error: Incompatible types in assignment (expression has type "None", variable has type "ndarray[Any, dtype[Any]]")  [assignment]
pymatgen/phonon/thermal_displacements.py:90: error: "ndarray" expects 2 type arguments, but 1 given  [type-arg]
pymatgen/phonon/thermal_displacements.py:90: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/thermal_displacements.py:99: error: Argument 1 to "len" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Sized"  [arg-type]
pymatgen/phonon/thermal_displacements.py:100: error: Argument 1 to "enumerate" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/phonon/thermal_displacements.py:102: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:103: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:104: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:105: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:106: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:107: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:108: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:109: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:110: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:114: error: "ndarray" expects 2 type arguments, but 1 given  [type-arg]
pymatgen/phonon/thermal_displacements.py:114: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/thermal_displacements.py:123: error: Argument 1 to "len" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Sized"  [arg-type]
pymatgen/phonon/thermal_displacements.py:124: error: Argument 1 to "enumerate" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/phonon/thermal_displacements.py:126: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:126: error: Value of type "Union[Any, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:127: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:127: error: Value of type "Union[Any, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:128: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:128: error: Value of type "Union[Any, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:129: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:129: error: Value of type "Union[Any, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:130: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:130: error: Value of type "Union[Any, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:131: error: Value of type "Union[int, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:131: error: Value of type "Union[Any, str, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/thermal_displacements.py:415: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/dos.py:67: error: Argument 1 to "PhononDos" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/dos.py:89: error: Argument 1 to "PhononDos" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/dos.py:89: error: Argument 2 to "PhononDos" has incompatible type "ndarray[Any, dtype[floating[Any]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/dos.py:97: error: Argument 1 to "PhononDos" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/dos.py:97: error: Argument 2 to "PhononDos" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/dos.py:155: error: Incompatible return value type (got "signedinteger[Any]", expected "int")  [return-value]
pymatgen/phonon/dos.py:443: error: Argument 1 to "PhononDos" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/dos.py:443: error: Argument 2 to "PhononDos" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/dos.py:458: error: Argument 1 to "PhononDos" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/dos.py:458: error: Argument 2 to "PhononDos" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/bandstructure.py:128: error: Argument 1 to "Kpoint" has incompatible type "Kpoint"; expected "ndarray[Any, Any]"  [arg-type]
pymatgen/phonon/bandstructure.py:130: error: Argument 1 to "Kpoint" has incompatible type "Kpoint"; expected "ndarray[Any, Any]"  [arg-type]
pymatgen/phonon/bandstructure.py:132: error: Argument 1 to "len" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Sized"  [arg-type]
pymatgen/phonon/bandstructure.py:155: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:155: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:155: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:155: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:155: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:155: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:155: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:155: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:155: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:157: error: Incompatible return value type (got "tuple[Kpoint, Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]", expected "tuple[Kpoint, float]")  [return-value]
pymatgen/phonon/bandstructure.py:157: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:157: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[signedinteger[Any], ...]"  [call-overload]
pymatgen/phonon/bandstructure.py:157: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:157: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:157: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:157: error: Invalid index type "tuple[signedinteger[Any], ...]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:157: error: Invalid index type "tuple[signedinteger[Any], ...]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:161: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:161: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:161: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:161: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:161: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:161: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:161: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:161: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:161: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:163: error: Incompatible return value type (got "tuple[Kpoint, Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]", expected "tuple[Kpoint, float]")  [return-value]
pymatgen/phonon/bandstructure.py:163: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:163: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[signedinteger[Any], ...]"  [call-overload]
pymatgen/phonon/bandstructure.py:163: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:163: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:163: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:163: error: Invalid index type "tuple[signedinteger[Any], ...]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:163: error: Invalid index type "tuple[signedinteger[Any], ...]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:172: error: Unsupported operand types for <= ("int" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/bandstructure.py:172: error: Unsupported operand types for <= ("int" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/bandstructure.py:172: error: Unsupported operand types for <= ("int" and "complex")  [operator]
pymatgen/phonon/bandstructure.py:172: error: Unsupported operand types for <= ("int" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/bandstructure.py:172: note: Left operand is of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"
pymatgen/phonon/bandstructure.py:172: error: Unsupported operand types for >= ("str" and "int")  [operator]
pymatgen/phonon/bandstructure.py:172: error: Unsupported operand types for >= ("bytes" and "int")  [operator]
pymatgen/phonon/bandstructure.py:173: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:173: error: Item "_SupportsArray[dtype[Any]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "max"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "max"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "str" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "max"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "int" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "max"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "float" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "max"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "complex" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "max"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "bytes" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "max"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "max"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "_SupportsArray[dtype[Any]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "min"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "min"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "str" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "min"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "int" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "min"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "float" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "min"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "complex" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "min"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "bytes" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "min"  [union-attr]
pymatgen/phonon/bandstructure.py:173: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "min"  [union-attr]
pymatgen/phonon/bandstructure.py:196: error: Unsupported operand types for > ("float" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/bandstructure.py:196: error: Unsupported operand types for > ("float" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/bandstructure.py:196: error: Unsupported operand types for > ("float" and "complex")  [operator]
pymatgen/phonon/bandstructure.py:196: error: Unsupported operand types for > ("float" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/bandstructure.py:196: note: Left operand is of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"
pymatgen/phonon/bandstructure.py:196: error: Unsupported operand types for < ("str" and "float")  [operator]
pymatgen/phonon/bandstructure.py:196: error: Unsupported operand types for < ("bytes" and "float")  [operator]
pymatgen/phonon/bandstructure.py:196: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:196: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:196: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:196: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:196: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:196: error: Item "_SupportsArray[dtype[Any]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/bandstructure.py:196: error: Item "int" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/bandstructure.py:196: error: Item "float" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/bandstructure.py:196: error: Item "complex" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/bandstructure.py:196: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:196: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:211: error: Argument 1 to "len" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Sized"  [arg-type]
pymatgen/phonon/bandstructure.py:263: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:263: error: Value of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:264: error: Value of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:264: error: Invalid index type "slice" for "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:264: error: Unsupported left operand type for - ("_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("_SupportsArray[dtype[Any]]" and "int")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("_SupportsArray[dtype[Any]]" and "float")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("_SupportsArray[dtype[Any]]" and "complex")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported left operand type for - ("_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("_NestedSequence[_SupportsArray[dtype[Any]]]" and "int")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("_NestedSequence[_SupportsArray[dtype[Any]]]" and "float")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("_NestedSequence[_SupportsArray[dtype[Any]]]" and "complex")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported left operand type for - ("str")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("str" and "int")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("str" and "float")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("str" and "complex")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported left operand type for - ("bytes")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("bytes" and "int")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("bytes" and "float")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("bytes" and "complex")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("int" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("int" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("int" and "str")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("int" and "bytes")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("int" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("float" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("float" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("float" and "str")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("float" and "bytes")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("float" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("complex" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("complex" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("complex" and "str")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("complex" and "bytes")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("complex" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported left operand type for - ("_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("_NestedSequence[Union[bool, int, float, complex, str, bytes]]" and "int")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("_NestedSequence[Union[bool, int, float, complex, str, bytes]]" and "float")  [operator]
pymatgen/phonon/bandstructure.py:264: error: Unsupported operand types for - ("_NestedSequence[Union[bool, int, float, complex, str, bytes]]" and "complex")  [operator]
pymatgen/phonon/bandstructure.py:264: note: Both left and right operands are unions
pymatgen/phonon/bandstructure.py:270: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:270: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[list[int], int]"  [call-overload]
pymatgen/phonon/bandstructure.py:270: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:270: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:270: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:270: error: Invalid index type "tuple[list[int], int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:270: error: Invalid index type "tuple[list[int], int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:272: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:272: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:272: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:272: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:272: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:272: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:272: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:393: error: Argument 1 to "_reuse_init" of "PhononBandStructureSymmLine" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], None]"; expected "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [arg-type]
pymatgen/phonon/bandstructure.py:396: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:396: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:396: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:396: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:396: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:396: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:396: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:396: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:396: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:416: error: Argument 1 to "append" of "list" has incompatible type "floating[Any]"; expected "float"  [arg-type]
pymatgen/phonon/bandstructure.py:443: error: Argument 1 to "allclose" has incompatible type "Kpoint"; expected "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [arg-type]
pymatgen/phonon/bandstructure.py:444: error: Argument 1 to "allclose" has incompatible type "Kpoint"; expected "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [arg-type]
pymatgen/phonon/bandstructure.py:447: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:447: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:447: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:447: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:447: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:447: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:447: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:449: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:449: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:449: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:449: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:449: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:449: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:449: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:450: error: Argument 1 to "allclose" has incompatible type "Kpoint"; expected "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [arg-type]
pymatgen/phonon/bandstructure.py:453: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:453: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:453: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:453: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:453: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:453: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:453: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:455: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:455: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:455: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:455: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:455: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:455: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:455: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:457: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "list[tuple[list[float], ndarray[Any, Any]]]")  [assignment]
pymatgen/phonon/bandstructure.py:458: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "list[tuple[list[float], ndarray[Any, Any]]]")  [assignment]
pymatgen/phonon/bandstructure.py:573: error: Incompatible types in assignment (expression has type "floating[Any]", variable has type "int")  [assignment]
pymatgen/phonon/bandstructure.py:582: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:582: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:582: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:582: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:582: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:582: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:582: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:582: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:582: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:586: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:586: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:586: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:586: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:586: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:586: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:586: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:586: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "copy"  [union-attr]
pymatgen/phonon/bandstructure.py:600: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:600: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:600: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:600: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:600: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:600: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:600: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:600: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:600: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "shape"  [union-attr]
pymatgen/phonon/bandstructure.py:610: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:610: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:610: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:610: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:610: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:610: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:610: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:611: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:611: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:611: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:611: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:611: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:611: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:611: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:620: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:620: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:620: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:620: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:620: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:620: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:620: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:621: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:621: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, int]"  [call-overload]
pymatgen/phonon/bandstructure.py:621: note: Possible overload variants:
pymatgen/phonon/bandstructure.py:621: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/bandstructure.py:621: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/bandstructure.py:621: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/bandstructure.py:621: error: Invalid index type "tuple[slice, int]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/bandstructure.py:622: error: Unsupported target for indexed assignment ("Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]")  [index]
pymatgen/phonon/bandstructure.py:622: error: Value of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/bandstructure.py:623: error: Unsupported target for indexed assignment ("Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]")  [index]
pymatgen/phonon/bandstructure.py:623: error: Value of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/io/zeopp.py:204: error: Item "Site" of "Union[SiteCollection, Site]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/io/lobster/inputs.py:340: error: Argument 1 to "_get_nbands" of "Lobsterin" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/io/lobster/inputs.py:468: error: Argument 1 to "automatic_density_by_vol" of "Kpoints" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/io/lobster/inputs.py:817: error: Argument "structure" to "get_basis" of "Lobsterin" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/io/lammps/data.py:847: error: Argument 3 to "Structure" has incompatible type "ndarray[Any, Any]"; expected "Sequence[Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/io/lammps/data.py:1256: error: Argument 1 to "LammpsBox" has incompatible type "ndarray[Any, Any]"; expected "Sequence[Any]"  [arg-type]
pymatgen/io/feff/inputs.py:184: error: Argument 1 to "SpacegroupAnalyzer" has incompatible type "Union[Structure, Molecule]"; expected "Structure"  [arg-type]
pymatgen/io/aims/inputs.py:89: error: No overload variant of "__setitem__" of "list" matches argument types "int", "ndarray[Any, Any]"  [call-overload]
pymatgen/io/aims/inputs.py:89: note: Possible overload variants:
pymatgen/io/aims/inputs.py:89: note:     def __setitem__(self, SupportsIndex, list[float], /) -> None
pymatgen/io/aims/inputs.py:89: note:     def __setitem__(self, slice, Iterable[list[float]], /) -> None
pymatgen/io/aims/inputs.py:99: error: Argument 3 to "Molecule" has incompatible type "floating[_64Bit]"; expected "float"  [arg-type]
pymatgen/io/aims/inputs.py:101: error: Incompatible types in assignment (expression has type "Structure", variable has type "Molecule")  [assignment]
pymatgen/io/aims/inputs.py:102: error: Argument 4 to "Structure" has incompatible type "floating[_64Bit]"; expected "Optional[float]"  [arg-type]
pymatgen/io/aims/inputs.py:189: error: Incompatible types in assignment (expression has type "Union[Structure, Molecule]", target has type "str")  [assignment]
pymatgen/io/aims/inputs.py:260: error: Argument "default_factory" to "field" has incompatible type "Callable[[], ndarray[Any, dtype[floating[Any]]]]"; expected "Callable[[], Sequence[Sequence[float]]]"  [arg-type]
pymatgen/io/aims/inputs.py:260: error: Incompatible return value type (got "ndarray[Any, dtype[floating[Any]]]", expected "Sequence[Sequence[float]]")  [return-value]
pymatgen/io/aims/inputs.py:614: error: Need type annotation for "species"  [var-annotated]
pymatgen/io/abinit/pseudos.py:148: error: "Pseudo" has no attribute "xc"  [attr-defined]
pymatgen/io/abinit/pseudos.py:152: error: "Pseudo" has no attribute "nlcc_radius"  [attr-defined]
pymatgen/io/abinit/pseudos.py:169: error: "Pseudo" has no attribute "path"  [attr-defined]
pymatgen/ext/cod.py:117: error: Dict entry 0 has incompatible type "str": "IStructure"; expected "str": "Union[str, int, Structure]"  [dict-item]
pymatgen/entries/entry_tools.py:298: error: Argument 1 to "update" of "set" has incompatible type "list[Union[Element, Species, DummySpecies]]"; expected "Iterable[Element]"  [arg-type]
pymatgen/electronic_structure/boltztrap.py:1596: error: Invalid index type "Site" for "dict[PeriodicSite, dict[Orbital, dict[Spin, Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]]]"; expected type "PeriodicSite"  [index]
pymatgen/electronic_structure/boltztrap.py:1598: error: Invalid index type "Site" for "dict[PeriodicSite, dict[Orbital, dict[Spin, Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]]]"; expected type "PeriodicSite"  [index]
pymatgen/electronic_structure/boltztrap.py:1599: error: Invalid index type "Site" for "dict[PeriodicSite, dict[Orbital, dict[Spin, Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]]]"; expected type "PeriodicSite"  [index]
pymatgen/electronic_structure/boltztrap.py:1600: error: Invalid index type "Site" for "dict[PeriodicSite, dict[Orbital, dict[Spin, Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]]]"; expected type "PeriodicSite"  [index]
pymatgen/electronic_structure/boltztrap.py:1602: error: Invalid index type "Site" for "dict[PeriodicSite, dict[Orbital, dict[Spin, Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]]]"; expected type "PeriodicSite"  [index]
pymatgen/core/tensors.py:94: error: Signature of "__hash__" incompatible with supertype "ndarray"  [override]
pymatgen/core/tensors.py:94: note:      Superclass:
pymatgen/core/tensors.py:94: note:          None
pymatgen/core/tensors.py:94: note:      Subclass:
pymatgen/core/tensors.py:94: note:          def __hash__(self) -> int
pymatgen/core/tensors.py:96: error: "Tensor" has no attribute "tostring"  [attr-defined]
pymatgen/apps/battery/battery_abc.py:67: error: Incompatible return value type (got "Union[Element, Species, DummySpecies]", expected "Element")  [return-value]
pymatgen/analysis/molecule_matcher.py:1207: error: List comprehension has incompatible type List[Site]; expected List[PeriodicSite]  [misc]
pymatgen/analysis/molecule_matcher.py:1209: error: Argument 1 to "match" of "KabschMatcher" has incompatible type "IMolecule"; expected "Molecule"  [arg-type]
pymatgen/analysis/molecule_matcher.py:1230: error: List comprehension has incompatible type List[Site]; expected List[PeriodicSite]  [misc]
pymatgen/analysis/molecule_matcher.py:1232: error: Argument 1 to "match" of "KabschMatcher" has incompatible type "IMolecule"; expected "Molecule"  [arg-type]
pymatgen/analysis/interface_reactions.py:427: error: Argument 1 to "close" has incompatible type "Union[Figure, SubFigure, None]"; expected "Union[None, int, str, Figure, Literal['all']]"  [arg-type]
pymatgen/analysis/interface_reactions.py:428: error: Incompatible return value type (got "Union[Figure, SubFigure, None]", expected "Figure")  [return-value]
pymatgen/analysis/interface_reactions.py:697: error: "PhaseDiagram" has no attribute "chempots"  [attr-defined]
pymatgen/analysis/interface_reactions.py:717: error: Unsupported operand types for - ("float" and "int")  [operator]
pymatgen/analysis/interface_reactions.py:717: error: "PhaseDiagram" has no attribute "chempots"  [attr-defined]
pymatgen/analysis/interface_reactions.py:722: error: Unsupported operand types for / ("float" and "int")  [operator]
pymatgen/analysis/interface_reactions.py:722: error: Generator has incompatible item type "float"; expected "bool"  [misc]
pymatgen/analysis/interface_reactions.py:722: error: "PhaseDiagram" has no attribute "chempots"  [attr-defined]
pymatgen/analysis/ewald.py:447: error: Signature of "from_dict" incompatible with supertype "MSONable"  [override]
pymatgen/analysis/ewald.py:447: note:      Superclass:
pymatgen/analysis/ewald.py:447: note:          @classmethod
pymatgen/analysis/ewald.py:447: note:          def from_dict(cls, d: Any) -> Any
pymatgen/analysis/ewald.py:447: note:      Subclass:
pymatgen/analysis/ewald.py:447: note:          @classmethod
pymatgen/analysis/ewald.py:447: note:          def from_dict(cls, dct: dict[str, Any], fmt: Optional[str] = ..., **kwargs: Any) -> EwaldSummation
pymatgen/analysis/chempot_diagram.py:177: error: Incompatible types in assignment (expression has type "list[Union[Element, Species]]", variable has type "list[Element]")  [assignment]
pymatgen/analysis/chempot_diagram.py:248: error: Invalid index type "Union[Element, Species]" for "dict[Element, PDEntry]"; expected type "Element"  [index]
pymatgen/analysis/chempot_diagram.py:558: error: Incompatible return value type (got "tuple[list[PDEntry], dict[Union[Element, Species, DummySpecies], PDEntry]]", expected "tuple[list[PDEntry], dict[Element, PDEntry]]")  [return-value]
pymatgen/analysis/chempot_diagram.py:603: error: Invalid index type "Union[Element, Species]" for "dict[Element, tuple[float, float]]"; expected type "Element"  [index]
pymatgen/analysis/chempot_diagram.py:609: error: Incompatible return value type (got "dict[str, PDEntry]", expected "dict[str, ComputedEntry]")  [return-value]
pymatgen/analysis/gb/grain.py:221: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/analysis/gb/grain.py:221: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "list[Site]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/analysis/gb/grain.py:230: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/analysis/gb/grain.py:230: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "list[Site]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/analysis/gb/grain.py:770: error: "IStructure" has no attribute "merge_sites"  [attr-defined]
pymatgen/analysis/gb/grain.py:772: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/analysis/gb/grain.py:772: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "list[Union[Site, PeriodicSite]]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/analysis/ferroelectricity/polarization.py:127: error: Incompatible types in assignment (expression has type "Union[float, floating[Any]]", variable has type "Optional[float]")  [assignment]
pymatgen/analysis/ferroelectricity/polarization.py:128: error: Argument 2 to "get_sites_in_sphere" of "IStructure" has incompatible type "Optional[float]"; expected "float"  [arg-type]
pymatgen/analysis/diffraction/core.py:117: error: Argument "xy" to "annotate" of "Axes" has incompatible type "list[Any]"; expected "tuple[float, float]"  [arg-type]
pymatgen/analysis/diffraction/core.py:118: error: Argument "xytext" to "annotate" of "Axes" has incompatible type "list[Any]"; expected "Optional[tuple[float, float]]"  [arg-type]
pymatgen/analysis/diffraction/core.py:138: error: Argument "xy" to "annotate" of "Axes" has incompatible type "list[Any]"; expected "tuple[float, float]"  [arg-type]
pymatgen/analysis/diffraction/core.py:139: error: Argument "xytext" to "annotate" of "Axes" has incompatible type "list[Any]"; expected "Optional[tuple[float, float]]"  [arg-type]
pymatgen/analysis/diffraction/core.py:170: error: "Axes" has no attribute "show"; maybe "imshow"?  [attr-defined]
pymatgen/alchemy/filters.py:152: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/alchemy/filters.py:154: error: "PeriodicNeighbor" has no attribute "__iter__" (not iterable)  [attr-defined]
pymatgen/phonon/gruneisen.py:47: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/gruneisen.py:48: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/gruneisen.py:101: error: Unsupported operand types for < ("int" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/gruneisen.py:101: error: Unsupported operand types for < ("int" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/gruneisen.py:101: error: Unsupported operand types for < ("int" and "complex")  [operator]
pymatgen/phonon/gruneisen.py:101: error: Unsupported operand types for < ("int" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/gruneisen.py:101: note: Left operand is of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"
pymatgen/phonon/gruneisen.py:101: error: Unsupported operand types for > ("str" and "int")  [operator]
pymatgen/phonon/gruneisen.py:101: error: Unsupported operand types for > ("bytes" and "int")  [operator]
pymatgen/phonon/gruneisen.py:107: error: Unsupported operand types for ** ("_SupportsArray[dtype[Any]]" and "int")  [operator]
pymatgen/phonon/gruneisen.py:107: error: Unsupported operand types for ** ("_NestedSequence[_SupportsArray[dtype[Any]]]" and "int")  [operator]
pymatgen/phonon/gruneisen.py:107: error: Unsupported operand types for ** ("str" and "int")  [operator]
pymatgen/phonon/gruneisen.py:107: error: Unsupported operand types for ** ("bytes" and "int")  [operator]
pymatgen/phonon/gruneisen.py:107: error: Unsupported operand types for ** ("_NestedSequence[Union[bool, int, float, complex, str, bytes]]" and "int")  [operator]
pymatgen/phonon/gruneisen.py:107: note: Left operand is of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"
pymatgen/phonon/gruneisen.py:111: error: Unsupported operand types for <= ("int" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/gruneisen.py:111: error: Unsupported operand types for <= ("int" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/gruneisen.py:111: error: Unsupported operand types for <= ("int" and "complex")  [operator]
pymatgen/phonon/gruneisen.py:111: error: Unsupported operand types for <= ("int" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/gruneisen.py:111: note: Left operand is of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"
pymatgen/phonon/gruneisen.py:111: error: Unsupported operand types for >= ("str" and "int")  [operator]
pymatgen/phonon/gruneisen.py:111: error: Unsupported operand types for >= ("bytes" and "int")  [operator]
pymatgen/phonon/gruneisen.py:113: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/gruneisen.py:113: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, slice]"  [call-overload]
pymatgen/phonon/gruneisen.py:113: note: Possible overload variants:
pymatgen/phonon/gruneisen.py:113: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/gruneisen.py:113: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/gruneisen.py:113: error: Invalid index type "tuple[slice, slice]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/gruneisen.py:113: error: Invalid index type "tuple[slice, slice]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/gruneisen.py:114: error: Unsupported operand types for <= ("int" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/gruneisen.py:114: error: Unsupported operand types for <= ("int" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/gruneisen.py:114: error: Unsupported operand types for <= ("int" and "complex")  [operator]
pymatgen/phonon/gruneisen.py:114: error: Unsupported operand types for <= ("int" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/gruneisen.py:114: note: Left operand is of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"
pymatgen/phonon/gruneisen.py:114: error: Unsupported operand types for >= ("str" and "int")  [operator]
pymatgen/phonon/gruneisen.py:114: error: Unsupported operand types for >= ("bytes" and "int")  [operator]
pymatgen/phonon/gruneisen.py:116: error: Unsupported operand types for <= ("int" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/phonon/gruneisen.py:116: error: Unsupported operand types for <= ("int" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/phonon/gruneisen.py:116: error: Unsupported operand types for <= ("int" and "complex")  [operator]
pymatgen/phonon/gruneisen.py:116: error: Unsupported operand types for <= ("int" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/phonon/gruneisen.py:116: note: Left operand is of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"
pymatgen/phonon/gruneisen.py:116: error: Unsupported operand types for >= ("str" and "int")  [operator]
pymatgen/phonon/gruneisen.py:116: error: Unsupported operand types for >= ("bytes" and "int")  [operator]
pymatgen/phonon/gruneisen.py:122: error: No overload variant of "__getitem__" of "Sequence" matches argument type "ndarray[Any, dtype[signedinteger[Any]]]"  [call-overload]
pymatgen/phonon/gruneisen.py:122: note: Possible overload variants:
pymatgen/phonon/gruneisen.py:122: note:     def __getitem__(self, int, /) -> Any
pymatgen/phonon/gruneisen.py:122: note:     def __getitem__(self, slice, /) -> Sequence[Any]
pymatgen/phonon/gruneisen.py:244: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/gruneisen.py:247: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/gruneisen.py:279: error: Argument 2 to "__init__" of "PhononBandStructure" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "list[Kpoint]"  [arg-type]
pymatgen/phonon/gruneisen.py:301: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:301: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:301: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:301: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:301: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:301: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:301: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:301: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:301: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:307: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:307: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:307: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:307: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:307: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:307: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:307: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:307: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:307: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "tolist"  [union-attr]
pymatgen/phonon/gruneisen.py:347: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/gruneisen.py:350: error: Bad number of arguments for type alias, expected: 0, given: 1  [type-arg]
pymatgen/phonon/gruneisen.py:392: error: Argument "eigendisplacements" to "_reuse_init" of "PhononBandStructureSymmLine" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], None]"; expected "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [arg-type]
pymatgen/phonon/gruneisen.py:392: error: Argument "qpoints" to "_reuse_init" of "PhononBandStructureSymmLine" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "list[Kpoint]"  [arg-type]
pymatgen/io/lammps/utils.py:118: error: Argument 1 to "_add_monomer" of "Polymer" has incompatible type "IMolecule"; expected "Molecule"  [arg-type]
pymatgen/io/lammps/utils.py:140: error: Argument 1 to "cross" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Union[_SupportsArray[dtype[_UnknownType]], _NestedSequence[_SupportsArray[dtype[_UnknownType]]], _UnknownType, _NestedSequence[_UnknownType]]"  [arg-type]
pymatgen/io/lammps/utils.py:140: error: Argument 2 to "cross" has incompatible type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Union[_SupportsArray[dtype[_UnknownType]], _NestedSequence[_SupportsArray[dtype[_UnknownType]]], _UnknownType, _NestedSequence[_UnknownType]]"  [arg-type]
pymatgen/io/lammps/utils.py:156: error: Unsupported operand types for * ("float" and "_SupportsArray[dtype[Any]]")  [operator]
pymatgen/io/lammps/utils.py:156: error: Unsupported operand types for * ("float" and "_NestedSequence[_SupportsArray[dtype[Any]]]")  [operator]
pymatgen/io/lammps/utils.py:156: error: Unsupported operand types for * ("float" and "str")  [operator]
pymatgen/io/lammps/utils.py:156: error: Unsupported operand types for * ("float" and "bytes")  [operator]
pymatgen/io/lammps/utils.py:156: error: Unsupported operand types for * ("float" and "_NestedSequence[Union[bool, int, float, complex, str, bytes]]")  [operator]
pymatgen/io/lammps/utils.py:156: note: Right operand is of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"
pymatgen/io/lammps/utils.py:164: error: "IMolecule" has no attribute "append"  [attr-defined]
pymatgen/io/lammps/utils.py:168: error: "IMolecule" has no attribute "remove_sites"  [attr-defined]
pymatgen/io/lammps/outputs.py:68: error: Argument 1 to "LammpsBox" has incompatible type "ndarray[Any, dtype[floating[_64Bit]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/io/lammps/outputs.py:68: error: Argument 2 to "LammpsBox" has incompatible type "Optional[ndarray[Any, dtype[floating[_64Bit]]]]"; expected "Optional[Sequence[Any]]"  [arg-type]
pymatgen/io/feff/sets.py:245: error: Item "Molecule" of "Union[Structure, Molecule]" has no attribute "lattice"  [union-attr]
pymatgen/io/cp2k/inputs.py:1972: error: Incompatible types in assignment (expression has type "KeywordList", target has type "Keyword")  [assignment]
pymatgen/io/aims/parsers.py:259: error: Argument 3 to "Structure" has incompatible type "ndarray[Any, dtype[floating[_64Bit]]]"; expected "Sequence[Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/io/aims/parsers.py:267: error: Argument 2 to "Molecule" has incompatible type "ndarray[Any, dtype[floating[_64Bit]]]"; expected "Sequence[Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/io/aims/parsers.py:301: error: Unsupported target for indexed assignment ("Optional[ndarray[Any, dtype[floating[_64Bit]]]]")  [index]
pymatgen/io/aims/parsers.py:492: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", target has type "Sequence[Any]")  [assignment]
pymatgen/io/aims/parsers.py:624: error: Function "numpy.core.multiarray.array" is not valid as a type  [valid-type]
pymatgen/io/aims/parsers.py:624: note: Perhaps you need "Callable[...]" or a callback protocol?
pymatgen/io/aims/parsers.py:637: error: Function "numpy.core.multiarray.array" is not valid as a type  [valid-type]
pymatgen/io/aims/parsers.py:637: note: Perhaps you need "Callable[...]" or a callback protocol?
pymatgen/electronic_structure/plotter.py:2233: error: "Dos" has no attribute "structure"  [attr-defined]
pymatgen/electronic_structure/plotter.py:2394: error: "Dos" has no attribute "get_element_dos"  [attr-defined]
pymatgen/electronic_structure/plotter.py:2408: error: "Dos" has no attribute "get_spd_dos"  [attr-defined]
pymatgen/electronic_structure/plotter.py:2912: error: Missing positional argument "ticks" in call to "set_xticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:2913: error: Missing positional argument "ticks" in call to "set_yticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:2946: error: Argument 1 to "set_xlim" of "_AxesBase" has incompatible type "Sequence[float]"; expected "Union[float, tuple[float, float], None]"  [arg-type]
pymatgen/electronic_structure/plotter.py:2947: error: Argument 1 to "set_ylim" of "_AxesBase" has incompatible type "list[float]"; expected "Union[float, tuple[float, float], None]"  [arg-type]
pymatgen/electronic_structure/plotter.py:2950: error: Missing positional argument "ticks" in call to "set_xticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:2951: error: Missing positional argument "ticks" in call to "set_yticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:2984: error: Argument 1 to "set_xlim" of "_AxesBase" has incompatible type "Sequence[float]"; expected "Union[float, tuple[float, float], None]"  [arg-type]
pymatgen/electronic_structure/plotter.py:2987: error: Missing positional argument "ticks" in call to "set_xticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:2988: error: Missing positional argument "ticks" in call to "set_yticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:3021: error: Argument 1 to "set_xlim" of "_AxesBase" has incompatible type "Sequence[float]"; expected "Union[float, tuple[float, float], None]"  [arg-type]
pymatgen/electronic_structure/plotter.py:3024: error: Missing positional argument "ticks" in call to "set_xticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:3025: error: Missing positional argument "ticks" in call to "set_yticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:3233: error: Missing positional argument "ticks" in call to "set_xticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:3234: error: Missing positional argument "ticks" in call to "set_yticks" of "_AxesBase"  [call-arg]
pymatgen/electronic_structure/plotter.py:4023: error: Item "None" of "Optional[Axes]" has no attribute "plot"  [union-attr]
pymatgen/electronic_structure/plotter.py:4049: error: Item "None" of "Optional[Axes]" has no attribute "plot"  [union-attr]
pymatgen/electronic_structure/plotter.py:4051: error: Item "None" of "Optional[Axes]" has no attribute "plot"  [union-attr]
pymatgen/electronic_structure/plotter.py:4053: error: Item "None" of "Optional[Axes]" has no attribute "plot"  [union-attr]
pymatgen/electronic_structure/plotter.py:4089: error: Item "None" of "Optional[Axes]" has no attribute "plot"  [union-attr]
pymatgen/electronic_structure/plotter.py:4128: error: Item "None" of "Optional[Axes]" has no attribute "text"  [union-attr]
pymatgen/electronic_structure/plotter.py:4128: error: "text" of "Axes" gets multiple values for keyword argument "s"  [misc]
pymatgen/electronic_structure/plotter.py:4199: error: Item "None" of "Optional[Axes]" has no attribute "scatter"  [union-attr]
pymatgen/electronic_structure/plotter.py:4281: error: Item "Axes" of "Optional[Axes]" has no attribute "set_xlim3d"  [union-attr]
pymatgen/electronic_structure/plotter.py:4281: error: Item "None" of "Optional[Axes]" has no attribute "set_xlim3d"  [union-attr]
pymatgen/electronic_structure/plotter.py:4282: error: Item "Axes" of "Optional[Axes]" has no attribute "set_ylim3d"  [union-attr]
pymatgen/electronic_structure/plotter.py:4282: error: Item "None" of "Optional[Axes]" has no attribute "set_ylim3d"  [union-attr]
pymatgen/electronic_structure/plotter.py:4283: error: Item "Axes" of "Optional[Axes]" has no attribute "set_zlim3d"  [union-attr]
pymatgen/electronic_structure/plotter.py:4283: error: Item "None" of "Optional[Axes]" has no attribute "set_zlim3d"  [union-attr]
pymatgen/electronic_structure/plotter.py:4286: error: Item "None" of "Optional[Axes]" has no attribute "axis"  [union-attr]
pymatgen/electronic_structure/plotter.py:4357: error: Item "Axes" of "Optional[Axes]" has no attribute "plot_wireframe"  [union-attr]
pymatgen/electronic_structure/plotter.py:4357: error: Item "None" of "Optional[Axes]" has no attribute "plot_wireframe"  [union-attr]
pymatgen/electronic_structure/plotter.py:4365: error: Item "Axes" of "Optional[Axes]" has no attribute "quiver3D"  [union-attr]
pymatgen/electronic_structure/plotter.py:4365: error: Item "None" of "Optional[Axes]" has no attribute "quiver3D"  [union-attr]
pymatgen/io/lobster/outputs.py:449: error: Argument 1 to "zopen" has incompatible type "Optional[str]"; expected "Union[str, Path]"  [arg-type]
pymatgen/apps/battery/insertion_battery.py:64: error: Item "ComputedEntry" of "Union[ComputedEntry, ComputedStructureEntry]" has no attribute "structure"  [union-attr]
pymatgen/apps/battery/insertion_battery.py:88: error: Argument 1 to "PhaseDiagram" has incompatible type "list[Union[ComputedEntry, ComputedStructureEntry, PDEntry]]"; expected "Union[Sequence[PDEntry], set[PDEntry]]"  [arg-type]
pymatgen/apps/battery/insertion_battery.py:94: error: Unsupported operand types for in ("Entry" and "Iterable[Union[ComputedEntry, ComputedStructureEntry]]")  [operator]
pymatgen/apps/battery/insertion_battery.py:97: error: Unsupported operand types for in ("Entry" and "Iterable[Union[ComputedEntry, ComputedStructureEntry]]")  [operator]
pymatgen/apps/battery/insertion_battery.py:111: error: Argument "working_ion_entry" to "InsertionElectrode" has incompatible type "Union[ComputedEntry, ComputedStructureEntry, PDEntry]"; expected "ComputedEntry"  [arg-type]
pymatgen/apps/battery/insertion_battery.py:112: error: Argument "stable_entries" to "InsertionElectrode" has incompatible type "tuple[Entry, ...]"; expected "Iterable[ComputedEntry]"  [arg-type]
pymatgen/apps/battery/insertion_battery.py:113: error: Argument "unstable_entries" to "InsertionElectrode" has incompatible type "tuple[Entry, ...]"; expected "Iterable[ComputedEntry]"  [arg-type]
pymatgen/apps/battery/conversion_battery.py:237: error: "AbstractVoltagePair" has no attribute "rxn"  [attr-defined]
pymatgen/analysis/structure_prediction/volume_predictor.py:199: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "list[Site]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/analysis/structure_prediction/volume_predictor.py:204: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/phonon/plotter.py:317: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/plotter.py:317: error: Value of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/plotter.py:462: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/plotter.py:462: error: Value of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/plotter.py:462: error: Item "_SupportsArray[dtype[Any]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:462: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:462: error: Item "str" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:462: error: Item "int" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:462: error: Item "float" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:462: error: Item "complex" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:462: error: Item "bytes" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:462: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:463: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/plotter.py:463: error: Value of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/plotter.py:463: error: Item "_SupportsArray[dtype[Any]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:463: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:463: error: Item "str" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:463: error: Item "int" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:463: error: Item "float" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:463: error: Item "complex" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:463: error: Item "bytes" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:463: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:468: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/plotter.py:468: error: No overload variant of "__getitem__" of "bytes" matches argument type "tuple[slice, slice]"  [call-overload]
pymatgen/phonon/plotter.py:468: note: Possible overload variants:
pymatgen/phonon/plotter.py:468: note:     def __getitem__(self, SupportsIndex, /) -> int
pymatgen/phonon/plotter.py:468: note:     def __getitem__(self, slice, /) -> bytes
pymatgen/phonon/plotter.py:468: error: Invalid index type "tuple[slice, slice]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "int"  [index]
pymatgen/phonon/plotter.py:468: error: Invalid index type "tuple[slice, slice]" for "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected type "Union[SupportsIndex, slice]"  [index]
pymatgen/phonon/plotter.py:471: error: Argument 1 to "LineCollection" has incompatible type "ndarray[Any, dtype[floating[_64Bit]]]"; expected "Sequence[Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]"  [arg-type]
pymatgen/phonon/plotter.py:474: error: Argument 1 to "max" has incompatible type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Any]"  [arg-type]
pymatgen/phonon/plotter.py:474: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:474: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:474: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:474: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:474: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:475: error: Argument 1 to "min" has incompatible type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"; expected "Iterable[Any]"  [arg-type]
pymatgen/phonon/plotter.py:475: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:475: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:475: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:475: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:475: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/phonon/plotter.py:639: error: Incompatible return value type (got "None", expected "Axes")  [return-value]
pymatgen/phonon/plotter.py:762: error: Argument 2 to "_plot_thermo" of "ThermoPlotter" has incompatible type "ndarray[Any, dtype[floating[Any]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/plotter.py:782: error: Argument 2 to "_plot_thermo" of "ThermoPlotter" has incompatible type "ndarray[Any, dtype[floating[Any]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/plotter.py:803: error: Argument 2 to "_plot_thermo" of "ThermoPlotter" has incompatible type "ndarray[Any, dtype[floating[Any]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/plotter.py:827: error: Argument 2 to "_plot_thermo" of "ThermoPlotter" has incompatible type "ndarray[Any, dtype[floating[Any]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/plotter.py:852: error: Argument 2 to "_plot_thermo" of "ThermoPlotter" has incompatible type "ndarray[Any, dtype[floating[Any]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/plotter.py:859: error: Argument 2 to "_plot_thermo" of "ThermoPlotter" has incompatible type "ndarray[Any, dtype[floating[Any]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/plotter.py:863: error: Argument 2 to "_plot_thermo" of "ThermoPlotter" has incompatible type "ndarray[Any, dtype[floating[Any]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/plotter.py:872: error: Argument 2 to "_plot_thermo" of "ThermoPlotter" has incompatible type "ndarray[Any, dtype[floating[Any]]]"; expected "Sequence[Any]"  [arg-type]
pymatgen/phonon/plotter.py:914: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:914: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:914: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:914: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:914: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:914: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:914: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:914: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:914: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:915: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:915: error: Item "_NestedSequence[_SupportsArray[dtype[Any]]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:915: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:915: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:915: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:915: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:915: error: Item "str" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:915: error: Item "bytes" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:915: error: Item "_NestedSequence[Union[bool, int, float, complex, str, bytes]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "flatten"  [union-attr]
pymatgen/phonon/plotter.py:1000: error: Value of type "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/plotter.py:1000: error: Value of type "Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" is not indexable  [index]
pymatgen/phonon/plotter.py:1000: error: List comprehension has incompatible type List[Union[Any, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], str, int, float, complex, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]]; expected List[float]  [misc]
pymatgen/phonon/plotter.py:1003: error: "PhononBandStructureSymmLine" has no attribute "gruneisen"  [attr-defined]
pymatgen/io/phonopy.py:473: error: Argument "multiplicities" to "GruneisenParameter" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Optional[Sequence[Any]]"  [arg-type]
pymatgen/io/vasp/sets.py:116: error: "VaspInputSet" has no attribute "user_potcar_functional"  [attr-defined]
pymatgen/io/vasp/sets.py:141: error: Signature of "get_input_set" incompatible with supertype "InputGenerator"  [override]
pymatgen/io/vasp/sets.py:141: note:      Superclass:
pymatgen/io/vasp/sets.py:141: note:          def get_input_set(self) -> InputSet
pymatgen/io/vasp/sets.py:141: note:      Subclass:
pymatgen/io/vasp/sets.py:141: note:          def get_input_set(self, structure: Any = ...) -> VaspInput
pymatgen/io/vasp/sets.py:201: error: Incompatible types in assignment (expression has type "str", variable has type "IO[Any]")  [assignment]
pymatgen/io/vasp/sets.py:203: error: No overload variant of "join" matches argument types "str", "IO[Any]"  [call-overload]
pymatgen/io/vasp/sets.py:203: note: Possible overload variants:
pymatgen/io/vasp/sets.py:203: note:     def join(str, /, *paths: str) -> str
pymatgen/io/vasp/sets.py:203: note:     def join(Union[str, PathLike[str]], /, *paths: Union[str, PathLike[str]]) -> str
pymatgen/io/vasp/sets.py:203: note:     def join(Union[bytes, PathLike[bytes]], /, *paths: Union[bytes, PathLike[bytes]]) -> bytes
pymatgen/io/vasp/sets.py:203: error: Argument "arcname" to "write" of "ZipFile" has incompatible type "IO[Any]"; expected "Optional[Union[str, PathLike[str]]]"  [arg-type]
pymatgen/io/vasp/sets.py:207: error: No overload variant of "join" matches argument types "str", "IO[Any]"  [call-overload]
pymatgen/io/vasp/sets.py:207: note: Possible overload variants:
pymatgen/io/vasp/sets.py:207: note:     def join(str, /, *paths: str) -> str
pymatgen/io/vasp/sets.py:207: note:     def join(Union[str, PathLike[str]], /, *paths: Union[str, PathLike[str]]) -> str
pymatgen/io/vasp/sets.py:207: note:     def join(Union[bytes, PathLike[bytes]], /, *paths: Union[bytes, PathLike[bytes]]) -> bytes
pymatgen/io/vasp/sets.py:464: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Optional[Structure]")  [assignment]
pymatgen/io/vasp/sets.py:466: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Optional[Structure]")  [assignment]
pymatgen/io/vasp/sets.py:490: error: Signature of "get_input_set" incompatible with supertype "InputGenerator"  [override]
pymatgen/io/vasp/sets.py:490: note:      Superclass:
pymatgen/io/vasp/sets.py:490: note:          def get_input_set(self) -> InputSet
pymatgen/io/vasp/sets.py:490: note:      Subclass:
pymatgen/io/vasp/sets.py:490: note:          def get_input_set(self, structure: Optional[Structure] = ..., prev_dir: Union[str, Path, None] = ..., potcar_spec: bool = ...) -> VaspInput
pymatgen/io/vasp/sets.py:3088: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "list[Sequence[Union[float, Sequence[Any]]]]")  [assignment]
pymatgen/io/lammps/sets.py:73: error: Dict entry 1 has incompatible type "str": "Union[LammpsData, CombinedData]"; expected "Union[str, Path]": "Union[str, InputFile]"  [dict-item]
pymatgen/io/cp2k/sets.py:1038: error: Incompatible types in assignment (expression has type "Section", variable has type "str")  [assignment]
pymatgen/io/aims/outputs.py:121: error: Incompatible return value type (got "Union[Site, Molecule, Structure]", expected "Union[Structure, Molecule]")  [return-value]
pymatgen/io/aims/outputs.py:146: error: Incompatible return value type (got "Union[Site, Molecule, Structure]", expected "Union[Structure, Molecule]")  [return-value]
pymatgen/io/aims/sets/base.py:397: error: "ndarray" expects 2 type arguments, but 1 given  [type-arg]
pymatgen/io/abinit/inputs.py:755: error: Argument 2 to "join" has incompatible type "Union[str, Pseudo]"; expected "str"  [arg-type]
pymatgen/analysis/elasticity/elastic.py:629: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "ndarray[Any, dtype[Any]]")  [assignment]
pymatgen/analysis/chemenv/coordination_environments/structure_environments.py:745: error: "_AxesBase" has no attribute "plot"  [attr-defined]
pymatgen/analysis/chemenv/coordination_environments/structure_environments.py:747: error: "_AxesBase" has no attribute "fill_between"  [attr-defined]
pymatgen/analysis/chemenv/coordination_environments/structure_environments.py:756: error: "_AxesBase" has no attribute "plot"  [attr-defined]
pymatgen/analysis/chemenv/coordination_environments/structure_environments.py:758: error: "_AxesBase" has no attribute "plot"  [attr-defined]
pymatgen/analysis/chemenv/coordination_environments/structure_environments.py:778: error: Argument 1 to "set_ylim" of "_AxesBase" has incompatible type "list[float]"; expected "Union[float, tuple[float, float], None]"  [arg-type]
pymatgen/analysis/chemenv/coordination_environments/structure_environments.py:781: error: Argument 1 to "set_xlim" of "_AxesBase" has incompatible type "list[float]"; expected "Union[float, tuple[float, float], None]"  [arg-type]
pymatgen/analysis/chemenv/coordination_environments/structure_environments.py:782: error: Argument 1 to "set_xlim" of "_AxesBase" has incompatible type "list[float]"; expected "Union[float, tuple[float, float], None]"  [arg-type]
pymatgen/analysis/chemenv/coordination_environments/chemenv_strategies.py:1180: error: "TargetedPenaltiedAbundanceChemenvStrategy" has no attribute "additional_condition"  [attr-defined]
pymatgen/analysis/chemenv/coordination_environments/chemenv_strategies.py:1929: error: "NbSetWeight" has no attribute "cn_weights"  [attr-defined]
pymatgen/analysis/chemenv/coordination_environments/chemenv_strategies.py:1929: error: "NbSetWeight" has no attribute "initialization_options"  [attr-defined]
pymatgen/analysis/local_env.py:1294: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/analysis/local_env.py:1373: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/analysis/local_env.py:1625: error: "Structure" has no attribute "get_covalent_bonds"  [attr-defined]
pymatgen/analysis/local_env.py:1773: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/analysis/local_env.py:1897: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "Structure"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/analysis/local_env.py:1913: error: Argument 1 to "ValenceIonicRadiusEvaluator" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/analysis/local_env.py:3409: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/analysis/local_env.py:3481: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/analysis/local_env.py:3553: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/analysis/local_env.py:3649: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/analysis/local_env.py:4239: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/alchemy/materials.py:71: error: Unsupported right operand type for in ("Union[AbstractTransformation, dict[str, Any]]")  [operator]
pymatgen/alchemy/materials.py:75: error: Value of type "Union[AbstractTransformation, dict[str, Any]]" is not indexable  [index]
pymatgen/alchemy/materials.py:193: error: Too many arguments for "VaspInputSet"  [call-arg]
pymatgen/alchemy/materials.py:214: error: Too many arguments for "VaspInputSet"  [call-arg]
pymatgen/alchemy/materials.py:227: error: Item "AbstractTransformation" of "Union[AbstractTransformation, dict[str, Any]]" has no attribute "pop"  [union-attr]
pymatgen/alchemy/materials.py:255: error: Value of type "Union[AbstractTransformation, dict[str, Any]]" is not indexable  [index]
pymatgen/alchemy/materials.py:255: error: Unsupported right operand type for in ("Union[AbstractTransformation, dict[str, Any]]")  [operator]
pymatgen/alchemy/materials.py:360: error: Item "AbstractTransformation" of "Union[AbstractTransformation, dict[str, Any]]" has no attribute "pop"  [union-attr]
pymatgen/alchemy/materials.py:386: error: Argument "history" to "TransformedStructure" has incompatible type "list[dict[Any, Any]]"; expected "Optional[list[Union[AbstractTransformation, dict[str, Any]]]]"  [arg-type]
pymatgen/alchemy/materials.py:386: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
pymatgen/alchemy/materials.py:386: note: Consider using "Sequence" instead, which is covariant
pymatgen/core/surface.py:289: error: Incompatible types in assignment (expression has type "StructureMatcher", variable has type "Site")  [assignment]
pymatgen/core/surface.py:839: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "list[Any]")  [assignment]
pymatgen/core/surface.py:849: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "list[Any]")  [assignment]
pymatgen/core/surface.py:949: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/entries/compatibility.py:131: error: "type[VaspInputSet]" has no attribute "CONFIG"  [attr-defined]
pymatgen/entries/compatibility.py:663: error: Incompatible return value type (got "list[ConstantEnergyAdjustment]", expected "list[EnergyAdjustment]")  [return-value]
pymatgen/entries/compatibility.py:663: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
pymatgen/entries/compatibility.py:663: note: Consider using "Sequence" instead, which is covariant
pymatgen/entries/compatibility.py:663: note: Perhaps you need a type annotation for "adjustment_list"? Suggestion: "list[EnergyAdjustment]"
pymatgen/entries/compatibility.py:680: error: "EnergyAdjustment" has no attribute "nominal_value"  [attr-defined]
pymatgen/entries/compatibility.py:681: error: "EnergyAdjustment" has no attribute "std_dev"  [attr-defined]
pymatgen/entries/compatibility.py:944: error: Incompatible return value type (got "list[CompositionEnergyAdjustment]", expected "list[EnergyAdjustment]")  [return-value]
pymatgen/entries/compatibility.py:944: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
pymatgen/entries/compatibility.py:944: note: Consider using "Sequence" instead, which is covariant
pymatgen/entries/compatibility.py:1082: error: Incompatible return value type (got "list[CompositionEnergyAdjustment]", expected "list[EnergyAdjustment]")  [return-value]
pymatgen/entries/compatibility.py:1082: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
pymatgen/entries/compatibility.py:1082: note: Consider using "Sequence" instead, which is covariant
pymatgen/entries/compatibility.py:1366: error: Argument 1 to "append" of "list" has incompatible type "CompositionEnergyAdjustment"; expected "TemperatureEnergyAdjustment"  [arg-type]
pymatgen/entries/compatibility.py:1379: error: Incompatible return value type (got "list[TemperatureEnergyAdjustment]", expected "list[EnergyAdjustment]")  [return-value]
pymatgen/entries/compatibility.py:1379: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
pymatgen/entries/compatibility.py:1379: note: Consider using "Sequence" instead, which is covariant
pymatgen/entries/compatibility.py:1379: note: Perhaps you need a type annotation for "adjustments"? Suggestion: "list[EnergyAdjustment]"
pymatgen/entries/compatibility.py:1383: error: Argument 1 of "process_entries" is incompatible with supertype "Compatibility"; supertype defines the argument type as "Union[Union[ComputedEntry, ComputedStructureEntry], list[Union[ComputedEntry, ComputedStructureEntry]]]"  [override]
pymatgen/entries/compatibility.py:1383: note: This violates the Liskov substitution principle
pymatgen/entries/compatibility.py:1383: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
pymatgen/analysis/surface_analysis.py:884: error: Incompatible return value type (got "list[Line2D]", expected "Axes")  [return-value]
pymatgen/analysis/surface_analysis.py:884: error: Argument 2 to "plot" has incompatible type "object"; expected "Union[float, Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], str]"  [arg-type]
pymatgen/analysis/adsorption.py:376: error: Incompatible types in assignment (expression has type "IMolecule", variable has type "Molecule")  [assignment]
pymatgen/analysis/adsorption.py:381: error: List comprehension has incompatible type List[Site]; expected List[PeriodicSite]  [misc]
pymatgen/analysis/interfaces/substrate_analyzer.py:129: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/analysis/interfaces/substrate_analyzer.py:129: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/analysis/interfaces/substrate_analyzer.py:129: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/analysis/interfaces/substrate_analyzer.py:129: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/analysis/interfaces/substrate_analyzer.py:129: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/analysis/interfaces/substrate_analyzer.py:135: error: Item "_SupportsArray[dtype[Any]]" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/analysis/interfaces/substrate_analyzer.py:135: error: Item "bool" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/analysis/interfaces/substrate_analyzer.py:135: error: Item "int" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/analysis/interfaces/substrate_analyzer.py:135: error: Item "float" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/analysis/interfaces/substrate_analyzer.py:135: error: Item "complex" of "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/transformations/site_transformations.py:362: error: Argument 1 to "append" of "list" has incompatible type "list[Site]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/transformations/site_transformations.py:410: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/transformations/site_transformations.py:585: error: Argument 1 to "get_neighbors" of "IStructure" has incompatible type "Site"; expected "PeriodicSite"  [arg-type]
pymatgen/transformations/standard_transformations.py:546: error: Incompatible types in assignment (expression has type "IStructure", variable has type "Structure")  [assignment]
pymatgen/transformations/standard_transformations.py:546: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "Structure"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/transformations/standard_transformations.py:563: error: "Structure" has no attribute "find_equivalent_sites"  [attr-defined]
pymatgen/transformations/standard_transformations.py:575: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "Structure"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/transformations/standard_transformations.py:590: error: Unsupported target for indexed assignment ("IStructure")  [index]
pymatgen/transformations/advanced_transformations.py:237: error: Incompatible types in assignment (expression has type "OrderDisorderedStructureTransformation", variable has type "SubstitutionTransformation")  [assignment]
pymatgen/entries/mixing_scheme.py:158: error: Argument 1 to "len" has incompatible type "Union[Union[ComputedEntry, ComputedStructureEntry], list[Union[ComputedEntry, ComputedStructureEntry]]]"; expected "Sized"  [arg-type]
pymatgen/entries/mixing_scheme.py:170: error: Item "ComputedEntry" of "Union[Union[ComputedEntry, ComputedStructureEntry], list[Union[ComputedEntry, ComputedStructureEntry]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/entries/mixing_scheme.py:170: error: Item "ComputedStructureEntry" of "Union[Union[ComputedEntry, ComputedStructureEntry], list[Union[ComputedEntry, ComputedStructureEntry]]]" has no attribute "__iter__" (not iterable)  [union-attr]
pymatgen/entries/mixing_scheme.py:497: error: Argument 1 to "PhaseDiagram" has incompatible type "list[ComputedStructureEntry]"; expected "Union[Sequence[PDEntry], set[PDEntry]]"  [arg-type]
pymatgen/entries/mixing_scheme.py:502: error: Argument 1 to "PhaseDiagram" has incompatible type "list[ComputedStructureEntry]"; expected "Union[Sequence[PDEntry], set[PDEntry]]"  [arg-type]
pymatgen/entries/mixing_scheme.py:539: error: "Structure" has no attribute "entry_id"  [attr-defined]
pymatgen/core/interface.py:157: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/interface.py:157: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "list[Site]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/core/interface.py:172: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/interface.py:172: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "list[Site]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/core/interface.py:193: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "Interface"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/core/interface.py:194: error: "IStructure" has no attribute "sort"  [attr-defined]
pymatgen/core/interface.py:195: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/core/interface.py:456: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "list[Site]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/core/interface.py:458: error: Argument 1 to "SpacegroupAnalyzer" has incompatible type "IStructure"; expected "Structure"  [arg-type]
pymatgen/analysis/pourbaix_diagram.py:450: error: "PourbaixEntry" has no attribute "entry_list"; maybe "entry_id"?  [attr-defined]
pymatgen/analysis/pourbaix_diagram.py:490: error: Argument 1 to "PhaseDiagram" has incompatible type "list[Union[ComputedEntry, PourbaixEntry]]"; expected "Union[Sequence[PDEntry], set[PDEntry]]"  [arg-type]
pymatgen/analysis/pourbaix_diagram.py:491: error: Argument 1 to "list" has incompatible type "set[Entry]"; expected "Iterable[PourbaixEntry]"  [arg-type]
pymatgen/analysis/magnetism/analyzer.py:360: error: Argument 1 to "from_sites" of "IStructure" has incompatible type "list[Site]"; expected "list[PeriodicSite]"  [arg-type]
pymatgen/analysis/magnetism/analyzer.py:365: error: Incompatible return value type (got "IStructure", expected "Structure")  [return-value]
pymatgen/analysis/magnetism/analyzer.py:572: error: Incompatible types in assignment (expression has type "Structure", variable has type "CollinearMagneticStructureAnalyzer")  [assignment]
pymatgen/analysis/magnetism/analyzer.py:573: error: Incompatible types in assignment (expression has type "Structure", variable has type "CollinearMagneticStructureAnalyzer")  [assignment]
pymatgen/analysis/magnetism/analyzer.py:575: error: Argument 1 to "matches" of "IStructure" has incompatible type "CollinearMagneticStructureAnalyzer"; expected "Union[IStructure, Structure]"  [arg-type]
pymatgen/analysis/chemenv/utils/chemenv_config.py:33: error: "AbstractChemenvStrategy" has no attribute "DEFAULT_DISTANCE_CUTOFF"  [attr-defined]
pymatgen/analysis/chemenv/utils/chemenv_config.py:34: error: "AbstractChemenvStrategy" has no attribute "DEFAULT_ANGLE_CUTOFF"  [attr-defined]
pymatgen/analysis/chemenv/utils/chemenv_config.py:35: error: "AbstractChemenvStrategy" has no attribute "DEFAULT_ADDITIONAL_CONDITION"  [attr-defined]
pymatgen/analysis/chemenv/utils/chemenv_config.py:36: error: "AbstractChemenvStrategy" has no attribute "DEFAULT_CONTINUOUS_SYMMETRY_MEASURE_CUTOFF"  [attr-defined]
Found 788 errors in 81 files (checked 279 source files)

@janosh
Copy link
Member

janosh commented Feb 22, 2024

types and pymatgen is a long story...

we're running mypy only locally on new commits because we've never been in the green and it would take days to fix all the legacy errors (which i've been chipping away at over the months but nowhere close to done)

i realized i never bothered to check if pyright can be run as a commit hook. turns out there's this community-maintained repo which we might want to adopt.

https://github.com/RobertCraigie/pyright-python

re comment, pretty sure pyright is a higher fidelity type checker than mypy. just tried it out:

5314 errors, 73 warnings

@janosh
Copy link
Member

janosh commented Feb 22, 2024

on a related note, the pre-commit version of mypy injects these flags to avoid errors from missing packages since mypy is too slow as is without installing deps:

args: ["--ignore-missing-imports", "--scripts-are-modules"]

@ml-evs
Copy link
Contributor Author

ml-evs commented Feb 22, 2024

Could we get this in then? I don't know how quickly you'd want to make another release but this does break several other packages at the moment (even just within the MP ecosystem -- atomate2, emmet, mp_api etc). Any fixing or new linting rules could be tried out in #3646 or otherwise handled by the maintainers as they see fit going forward

@janosh
Copy link
Member

janosh commented Feb 22, 2024

i'll take a look at this tomorrow morning. it'll definitely be in the next release. we need one for several other issues as well

Copy link
Member

@janosh janosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks again @ml-evs for reporting and fixing.

i refactored the code somewhat. i think we're in a good place now with the test added in
0245247 that will run in whatever ase-less we setup in #3646. i confirmed the new test passes in a venv without ase and is skipped otherwise

@janosh janosh enabled auto-merge (squash) February 23, 2024 10:07
@ml-evs
Copy link
Contributor Author

ml-evs commented Feb 23, 2024

thanks again @ml-evs for reporting and fixing.

i refactored the code somewhat. i think we're in a good place now with the test added in 0245247 that will run in whatever ase-less we setup in #3646. i confirmed the new test passes in a venv without ase and is skipped otherwise

I'm afraid I don't think your refactor is advisable; the error was triggered initially for mp_api by emmet importing from emmet.core.electronic_structure import BSPathType which then hits from pymatgen.analysis.magnetism.analyzer import .... The refactor (haven't tried running it) looks to me like it will now just give a clearer better error message?

Scratch that, misread it! LGTM

@janosh
Copy link
Member

janosh commented Feb 23, 2024

The refactor (haven't tried running it) looks to me like it will now just give a clearer better error message?

i hope not. the behavior is meant to be unchanged. given this class only raises on init, i don't see how you'd get an error on import?

class Atoms:  # type: ignore[no-redef]
        def __init__(self, *args, **kwargs):
            raise no_ase_err

@ml-evs
Copy link
Contributor Author

ml-evs commented Feb 23, 2024

The refactor (haven't tried running it) looks to me like it will now just give a clearer better error message?

i hope not. the behavior is meant to be unchanged. given this class only raises on init, i don't see how you'd get an error on import?

class Atoms:  # type: ignore[no-redef]
        def __init__(self, *args, **kwargs):
            raise no_ase_err

You just beat my ninja edit, in the time it took me to walk to my computer to test it out - never review PRs from your phone! Thanks for updating this @janosh

@janosh janosh merged commit 5ce2ae1 into materialsproject:master Feb 23, 2024
22 checks passed
@janosh janosh added the io Input/output functionality label Feb 23, 2024
@janosh janosh added fix Bug fix PRs ase Atomic simulation environment labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ase Atomic simulation environment fix Bug fix PRs io Input/output functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can no longer import some modules without having ASE installed
3 participants