Skip to content

Commit

Permalink
use manual import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Dec 17, 2020
1 parent 2bee550 commit 4c61421
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions 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
Expand All @@ -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

"""
Expand Down
2 changes: 1 addition & 1 deletion emmet-core/emmet/stubs/entries.py
Expand Up @@ -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):
Expand Down

0 comments on commit 4c61421

Please sign in to comment.