mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 06:54:18 +01:00
Fix tests for Pydantic 2.11 (#465)
This commit is contained in:
committed by
GitHub
parent
c4beb3e8ef
commit
70115b99b3
@@ -27,7 +27,7 @@ class ArgModelBase(BaseModel):
|
||||
That is, sub-models etc are not dumped - they are kept as pydantic models.
|
||||
"""
|
||||
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)
|
||||
return kwargs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user