diff --git a/capa/features/freeze/__init__.py b/capa/features/freeze/__init__.py index 8bbc4dc55..7af642f6a 100644 --- a/capa/features/freeze/__init__.py +++ b/capa/features/freeze/__init__.py @@ -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]