Skip to content

Commit 037610b

Browse files
fix: organize imports and use collections.abc.AsyncIterator
1 parent a469a0e commit 037610b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/agents/mcp/server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
import abc
44
import asyncio
55
import inspect
6-
from collections.abc import Awaitable
6+
from collections.abc import AsyncIterator, Awaitable
77
from contextlib import AbstractAsyncContextManager, AsyncExitStack
88
from datetime import timedelta
99
from pathlib import Path
10-
from typing import TYPE_CHECKING, Any, Callable, Literal, TypeVar, AsyncIterator
11-
10+
from typing import TYPE_CHECKING, Any, Callable, Literal, TypeVar
1211

1312
from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
1413
from mcp import ClientSession, StdioServerParameters, Tool as MCPTool, stdio_client

0 commit comments

Comments
 (0)