File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ target-version = "py310"
7777
7878[tool .ruff .lint .per-file-ignores ]
7979"__init__.py" = [" F401" ]
80+ "tests/server/fastmcp/test_func_metadata.py" = [" E501" ]
8081
8182[tool .uv .workspace ]
8283members = [" examples/servers/*" ]
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ def test_complex_function_json_schema():
300300 },
301301 "field_with_default_via_field_annotation_before_nondefault_arg" : {
302302 "default" : 1 ,
303- "title" : "Field With Default Via Field Annotation Before Arg" ,
303+ "title" : "Field With Default Via Field Annotation Before Nondefault Arg" ,
304304 "type" : "integer" ,
305305 },
306306 "unannotated" : {"title" : "unannotated" , "type" : "string" },
@@ -319,7 +319,7 @@ def test_complex_function_json_schema():
319319 "type" : "string" ,
320320 },
321321 "my_model_a_with_default" : {
322- "allOf" : [{ " $ref" : "#/$defs/SomeInputModelA" }] ,
322+ "$ref" : "#/$defs/SomeInputModelA" ,
323323 "default" : {},
324324 },
325325 "an_int_with_default" : {
Original file line number Diff line number Diff line change 55from mcp .shared .memory import (
66 create_connected_server_and_client_session as client_session ,
77)
8- from mcp .types import TextContent
8+ from mcp .types import TextContent , TextResourceContents
99
1010
1111@pytest .mark .anyio
@@ -59,5 +59,5 @@ async def test_desktop():
5959 result = await client .read_resource (AnyUrl ("dir://desktop" ))
6060 assert len (result .contents ) == 1
6161 content = result .contents [0 ]
62- assert isinstance (content , TextContent )
62+ assert isinstance (content , TextResourceContents )
6363 assert isinstance (content .text , str )
You can’t perform that action at this time.
0 commit comments