Apply ruff-format: drop now-unused imports and reflow

This commit is contained in:
Jeremiah Lowin 2026-07-06 21:38:04 -04:00
commit 396fb876d3
No known key found for this signature in database
5 changed files with 4 additions and 9 deletions

View file

@ -38,9 +38,7 @@ async def main():
# 2. Proxy Server Creation
print("\nStep 2: Creating the Proxy Server (InMemoryProxy)...")
print(
f" (Using create_proxy to wrap '{original_server.name}' directly)"
)
print(f" (Using create_proxy to wrap '{original_server.name}' directly)")
proxy_server = create_proxy(original_server, name="InMemoryProxy")
print(
f" -> Proxy Server '{proxy_server.name}' created, proxying '{original_server.name}'."

View file

@ -5,7 +5,6 @@ from __future__ import annotations
import asyncio
import logging
import secrets
import warnings
from collections.abc import (
AsyncIterator,
Callable,

View file

@ -7,7 +7,7 @@ import weakref
import psutil
import pytest
from fastmcp import Client, FastMCP
from fastmcp import Client
from fastmcp.client.transports import PythonStdioTransport, StdioTransport

View file

@ -273,9 +273,7 @@ class TestMultipleServerMount:
)
# Create a proxy server that will fail to connect
unreachable_proxy = create_proxy(
unreachable_client, name="unreachable_proxy"
)
unreachable_proxy = create_proxy(unreachable_client, name="unreachable_proxy")
# Mount the unreachable proxy
main_app.mount(unreachable_proxy, "unreachable")

View file

@ -12,11 +12,11 @@ from mcp_types import (
from pydantic import BaseModel, Field
from fastmcp import Client, Context, FastMCP
from fastmcp.server import create_proxy
from fastmcp.client.elicitation import ElicitRequestParams, ElicitResult
from fastmcp.client.logging import LogMessage
from fastmcp.client.sampling import RequestContext, SamplingMessage, SamplingParams
from fastmcp.exceptions import ToolError
from fastmcp.server import create_proxy
from fastmcp.server.elicitation import AcceptedElicitation
from fastmcp.server.providers.proxy import ProxyClient, _create_client_factory