Skip to content

Commit 70115b9

Browse files
Fix tests for Pydantic 2.11 (#465)
1 parent c4beb3e commit 70115b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/mcp/server/fastmcp/utilities/func_metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def model_dump_one_level(self) -> dict[str, Any]:
2727
That is, sub-models etc are not dumped - they are kept as pydantic models.
2828
"""
2929
kwargs: dict[str, Any] = {}
30-
for field_name in self.model_fields.keys():
30+
for field_name in self.__class__.model_fields.keys():
3131
kwargs[field_name] = getattr(self, field_name)
3232
return kwargs
3333

0 commit comments

Comments
 (0)