Skip to content

Commit

Permalink
fix validation with import order
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Dec 17, 2020
1 parent 94fa5ed commit 2dc1e3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions emmet-core/emmet/stubs/__init__.py
@@ -1,3 +1,4 @@
# isort: skip_file
"""
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,14 +10,14 @@
from pymatgen.core.structure import Composition, Lattice, Structure
from pymatgen.entries.computed_entries import ComputedEntry, ComputedStructureEntry

from emmet.stubs.entries import ComputedEntry as StubComputedEntry
from emmet.stubs.entries import ComputedStructureEntry as StubComputedStructureEntry
from emmet.stubs.math import Matrix3D, Vector3D
from emmet.stubs.misc import Composition as StubComposition
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.xrd import XRDPattern as StubXRDPattern
from emmet.stubs.entries import ComputedEntry as StubComputedEntry
from emmet.stubs.entries import ComputedStructureEntry as StubComputedStructureEntry

"""
The stub names are kept in sync with the actual classes so they
Expand Down

0 comments on commit 2dc1e3e

Please sign in to comment.