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

Unpin pydantic #9514

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -1166,3 +1166,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)
Loading