Skip to content

Commit

Permalink
fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed May 16, 2024
1 parent c42b899 commit a6c2806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymatgen/core/trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(
if isinstance(lattice, Lattice):
lattice = lattice.matrix
elif isinstance(lattice, list) and isinstance(lattice[0], Lattice):
lattice = [x.matrix for x in lattice] # type: ignore
lattice = [cast(Lattice, x).matrix for x in lattice]
lattice = np.asarray(lattice)

if not constant_lattice and lattice.shape == (3, 3):
Expand Down

0 comments on commit a6c2806

Please sign in to comment.