Skip to content

Commit 3efa566

Browse files
committed
Fix type error.
1 parent 64946ef commit 3efa566

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/matcalc/_md.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _initialize_md(self, atoms: Atoms) -> Any: # noqa: C901,PLR0912
301301
)
302302
elif self.ensemble.lower() == "npt_mtk":
303303
if Version(_ase_version) > Version("3.25.0"):
304-
from ase.md.nose_hoover_chain import MTKNPT
304+
from ase.md.nose_hoover_chain import MTKNPT # type:ignore[attr-defined]
305305
else:
306306
raise ImportError("MTKNPT is only available in ASE version 3.26.0 or later.")
307307
md = MTKNPT(

0 commit comments

Comments
 (0)