Skip to content

Commit

Permalink
Unpin pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Dec 13, 2024
1 parent ebe548e commit 8bb0180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dependencies = [
"polars",
"psutil",
"pyarrow", # extra dependency for pandas (parquet)
"pydantic > 2, < 2.10",
"pydantic > 2",
"PyQt5",
"python-dateutil",
"python-multipart", # extra dependency for fastapi
Expand Down
6 changes: 5 additions & 1 deletion src/ert/config/ert_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import polars
from pydantic import ValidationError as PydanticValidationError
from pydantic import field_validator
from pydantic.dataclasses import dataclass
from pydantic.dataclasses import dataclass, rebuild_dataclass

from ert.plugins import ErtPluginManager
from ert.substitutions import Substitutions
Expand Down Expand Up @@ -1193,3 +1193,7 @@ def _forward_model_step_from_config_file(
)
except OSError as err:
raise ConfigValidationError.with_context(str(err), config_file) from err


# Due to circular dependency in type annotations between ErtConfig -> WorkflowJob -> ErtScript -> ErtConfig
rebuild_dataclass(ErtConfig)

0 comments on commit 8bb0180

Please sign in to comment.