Skip to content

Commit 27895a8

Browse files
mypy
1 parent ab40a09 commit 27895a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

emmet-core/emmet/core/phonon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def from_arrow(cls, table: ArrowTable, col_prefix: str | None = None) -> Self:
135135
@classmethod
136136
def from_phonopy(cls, phonon_dos_file: str | Path) -> Self:
137137
"""Create a PhononDOS from phonopy .dat output."""
138-
phonopy_dos: dict[str, list[float]] = {
138+
phonopy_dos: dict[str, Any] = {
139139
k: []
140140
for k in (
141141
"frequencies",
@@ -241,7 +241,7 @@ def _to_pmg_es_bs(self) -> BandStructureSymmLine:
241241
rlatt,
242242
1e-6, # There is no Fermi level in a Phonon DOS (these are bosons definitionally) but we want to plot the bands from zero.
243243
{
244-
k: Kpoint(v, lattice=rlatt).frac_coords
244+
k: Kpoint(v, lattice=rlatt).frac_coords # type: ignore[misc]
245245
for k, v in (self.labels_dict or {}).items()
246246
},
247247
coords_are_cartesian=False,

0 commit comments

Comments
 (0)