Skip to content

Commit b7e97a9

Browse files
committed
Allow arbitrary types in model creation by updating config in create_model
1 parent 75d9420 commit b7e97a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/server/fastmcp/utilities/func_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def _create_wrapped_model(func_name: str, annotation: Any, field_info: FieldInfo
415415
if annotation is None:
416416
annotation = type(None)
417417

418-
return create_model(model_name, result=(annotation, field_info), __base__= OutputModelBase)
418+
return create_model(model_name, result=(annotation, field_info), __base__=OutputModelBase)
419419

420420

421421
def _create_dict_model(func_name: str, dict_annotation: Any) -> type[BaseModel]:

0 commit comments

Comments
 (0)