mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
freeze: pydantic v2 fixes
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user