Skip to content

Commit

Permalink
freeze: pydantic v2 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
williballenthin committed Aug 10, 2023
1 parent c1fbb27 commit 19495f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions capa/features/freeze/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 19495f6

Please sign in to comment.