From 4c614210b4fad79f523c7c604796d945df70868c Mon Sep 17 00:00:00 2001 From: Shyam D Date: Thu, 17 Dec 2020 13:54:22 -0800 Subject: [PATCH] use manual import sorting --- emmet-core/emmet/stubs/__init__.py | 9 +++++---- emmet-core/emmet/stubs/entries.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/emmet-core/emmet/stubs/__init__.py b/emmet-core/emmet/stubs/__init__.py index f3635a824c..63275ba48f 100644 --- a/emmet-core/emmet/stubs/__init__.py +++ b/emmet-core/emmet/stubs/__init__.py @@ -1,3 +1,4 @@ +# isort: off """ This module stubs in pydantic models for common MSONable classes, particularly those in Pymatgen Use pymatgen classes in pydantic models by importing them from there when you need schema @@ -9,13 +10,13 @@ from pymatgen.core.structure import Composition, Lattice, Structure from pymatgen.entries.computed_entries import ComputedEntry, ComputedStructureEntry -from emmet.stubs.entries import Composition as StubComposition -from emmet.stubs.entries import ComputedEntry as StubComputedEntry -from emmet.stubs.entries import ComputedStructureEntry as StubComputedStructureEntry +from emmet.stubs.utils import patch_msonable, use_model from emmet.stubs.math import Matrix3D, Vector3D from emmet.stubs.structure import Lattice as StubLattice from emmet.stubs.structure import Structure as StubStructure -from emmet.stubs.utils import patch_msonable, use_model +from emmet.stubs.entries import Composition as StubComposition +from emmet.stubs.entries import ComputedEntry as StubComputedEntry +from emmet.stubs.entries import ComputedStructureEntry as StubComputedStructureEntry from emmet.stubs.xrd import XRDPattern as StubXRDPattern """ diff --git a/emmet-core/emmet/stubs/entries.py b/emmet-core/emmet/stubs/entries.py index 7e424323ef..2bf8420d2d 100644 --- a/emmet-core/emmet/stubs/entries.py +++ b/emmet-core/emmet/stubs/entries.py @@ -3,7 +3,7 @@ from pydantic import BaseModel, Field from pymatgen.core.periodic_table import Element -from emmet.stubs import Structure +from emmet.stubs.structure import Structure class Composition(BaseModel):