Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test pydantic v2 #541

Merged
merged 11 commits into from
Sep 1, 2023
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- pytest-xdist
- pytest-cov
- pytest-rerunfailures
- pydantic <2
- pydantic >1
- coverage
- cinnabar ==0.3.0
- openff-toolkit>=0.13.0
Expand Down
2 changes: 1 addition & 1 deletion openfe/protocols/openmm_rfe/equil_rfe_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
try:
from pydantic.v1 import validator
except ImportError:
from pydantic import validator
from pydantic import validator # type: ignore[assignment]


class AlchemicalSettings(SettingsBaseModel):
Expand Down
2 changes: 1 addition & 1 deletion openfe/protocols/openmm_utils/omm_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
try:
from pydantic.v1 import validator
except ImportError:
from pydantic import validator
from pydantic import validator # type: ignore[assignment]

class SystemSettings(SettingsBaseModel):
"""Settings describing the simulation system settings."""
Expand Down
Loading