π The fast, Pythonic way to build MCP servers and clients.
Fix remaining typing issues
Jeremiah Lowin39c8f398635b
diff --git a/tests/server/test_import_server.py b/tests/server/test_import_server.pyindex ed03567be..2e004bbfe 100644--- a/tests/server/test_import_server.py+++ b/tests/server/test_import_server.py@@ -321,7 +321,7 @@ async def test_import_with_proxy_prompts():await main_app.import_server("api", proxy_app)result = await main_app._mcp_get_prompt("api_greeting", {"name": "World"})- assert result.messages[0].content.text == "Hello, World from API!"+ assert result.messages[0].content.text == "Hello, World from API!" # type: ignore[attr-defined]assert result.description == "Example greeting prompt."diff --git a/tests/server/test_server_interactions.py b/tests/server/test_server_interactions.pyindex 6d7c9ed4c..3264c0601 100644--- a/tests/server/test_server_interactions.py+++ b/tests/server/test_server_interactions.py@@ -979,7 +979,7 @@ class TestResourceTemplates:# Test lookup by namename_result = await client.read_resource(AnyUrl("users://name/John"))assert name_result[0].text # type: ignore[attr-defined]- name_+ name_data = json.loads(name_result[0].text) # type: ignore[attr-defined]assert name_data["lookup"] == "name"assert name_data["name"] == "John"assert name_data["email"] == "[email protected]"