Skip to content

Commit bbd1ebd

Browse files
committed
Fix static analysis after main merge
- Drop unused StdioTransport import (special case removed in Client.new()) - Add ty:ignore to registry test assignment (type: ignore is mypy-only)
1 parent 7a7192a commit bbd1ebd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/fastmcp/client/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
PythonStdioTransport,
7171
SessionKwargs,
7272
SSETransport,
73-
StdioTransport,
7473
StreamableHttpTransport,
7574
infer_transport,
7675
)

tests/client/client/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def test_client_new_resets_mutable_task_state(fastmcp_server):
774774
"""Client.new() should not share mutable task tracking structures."""
775775
client = Client(transport=FastMCPTransport(fastmcp_server))
776776

777-
client._task_registry["task-1"] = lambda: None # type: ignore[assignment]
777+
client._task_registry["task-1"] = lambda: None # type: ignore[assignment] # ty:ignore[invalid-assignment]
778778
client._submitted_task_ids.add("task-1")
779779

780780
clone = client.new()

0 commit comments

Comments
 (0)