From 6b56d8bebf52552217062bc4fbdb97467355d4d5 Mon Sep 17 00:00:00 2001 From: Sebastiaan Huber Date: Sun, 21 Jul 2024 22:49:29 +0200 Subject: [PATCH] Devops: Fix pymatgen import causing mypy to fail (#6540) The `pymatgen==2024.07.18` release removed the exposing of `Molecule` in `pymatgen.core` causing `mypy` to fail. The import is updated to reflect the actual origin of the definition. --- tests/orm/nodes/data/test_jsonable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/orm/nodes/data/test_jsonable.py b/tests/orm/nodes/data/test_jsonable.py index 59fbe9b6a8..bacedac73a 100644 --- a/tests/orm/nodes/data/test_jsonable.py +++ b/tests/orm/nodes/data/test_jsonable.py @@ -6,7 +6,7 @@ import pytest from aiida.orm import load_node from aiida.orm.nodes.data.jsonable import JsonableData -from pymatgen.core import Molecule +from pymatgen.core.structure import Molecule class JsonableClass: