freeze: pydantic v2 fixes

This commit is contained in:
Willi Ballenthin
2023-08-10 13:29:52 +00:00
parent c1fbb27d73
commit 19495f69d7

View File

@@ -334,9 +334,7 @@ class DynamicFeatures(BaseModel):
global_: Tuple[GlobalFeature, ...] = Field(alias="global")
file: Tuple[FileFeature, ...]
processes: Tuple[ProcessFeatures, ...]
class Config:
allow_population_by_field_name = True
model_config = ConfigDict(populate_by_name=True)
Features: TypeAlias = Union[StaticFeatures, DynamicFeatures]