Skip to content

Commit

Permalink
MAINT: Support pydantic v2 (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
bocklund committed Aug 30, 2023
1 parent 0ea63a7 commit 79c292a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion espei/phase_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ModelMetadata(BaseModel):
sublattice_model: List[List[ComponentName]]
sublattice_site_ratios: List[PositiveFloat]
# Fully qualified import path for a Python class that follows the pycalphad.Model API
model: Optional[PyObject]
model: Optional[PyObject] = None


class PhaseModelSpecification(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def readme(fname):
'matplotlib',
'numpy>=1.20',
'pycalphad>=0.10.1',
'pydantic',
'pydantic>2.0',
'pyyaml',
'setuptools_scm[toml]>=6.0',
'scikit-learn>=1.0',
Expand Down

0 comments on commit 79c292a

Please sign in to comment.