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"
77
77
78
78
[tool .ruff .lint .per-file-ignores ]
79
79
"__init__.py" = [" F401" ]
80
+ "tests/server/fastmcp/test_func_metadata.py" = [" E501" ]
80
81
81
82
[tool .uv .workspace ]
82
83
members = [" examples/servers/*" ]
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ def test_complex_function_json_schema():
300
300
},
301
301
"field_with_default_via_field_annotation_before_nondefault_arg" : {
302
302
"default" : 1 ,
303
- "title" : "Field With Default Via Field Annotation Before Arg" ,
303
+ "title" : "Field With Default Via Field Annotation Before Nondefault Arg" ,
304
304
"type" : "integer" ,
305
305
},
306
306
"unannotated" : {"title" : "unannotated" , "type" : "string" },
@@ -319,7 +319,7 @@ def test_complex_function_json_schema():
319
319
"type" : "string" ,
320
320
},
321
321
"my_model_a_with_default" : {
322
- "allOf" : [{ " $ref" : "#/$defs/SomeInputModelA" }] ,
322
+ "$ref" : "#/$defs/SomeInputModelA" ,
323
323
"default" : {},
324
324
},
325
325
"an_int_with_default" : {
Original file line number Diff line number Diff line change 5
5
from mcp .shared .memory import (
6
6
create_connected_server_and_client_session as client_session ,
7
7
)
8
- from mcp .types import TextContent
8
+ from mcp .types import TextContent , TextResourceContents
9
9
10
10
11
11
@pytest .mark .anyio
@@ -59,5 +59,5 @@ async def test_desktop():
59
59
result = await client .read_resource (AnyUrl ("dir://desktop" ))
60
60
assert len (result .contents ) == 1
61
61
content = result .contents [0 ]
62
- assert isinstance (content , TextContent )
62
+ assert isinstance (content , TextResourceContents )
63
63
assert isinstance (content .text , str )
You can’t perform that action at this time.
0 commit comments