Fix tests for Pydantic 2.11 (#465)
This commit is contained in:
parent
c4beb3e8ef
commit
70115b99b3
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ class ArgModelBase(BaseModel):
|
||||||
That is, sub-models etc are not dumped - they are kept as pydantic models.
|
That is, sub-models etc are not dumped - they are kept as pydantic models.
|
||||||
"""
|
"""
|
||||||
kwargs: dict[str, Any] = {}
|
kwargs: dict[str, Any] = {}
|
||||||
for field_name in self.model_fields.keys():
|
for field_name in self.__class__.model_fields.keys():
|
||||||
kwargs[field_name] = getattr(self, field_name)
|
kwargs[field_name] = getattr(self, field_name)
|
||||||
return kwargs
|
return kwargs
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue