Skip to content

Commit 17fc21e

Browse files
committed
import Self from typing_extensions for Python 3.10
1 parent 17bef50 commit 17fc21e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mcp/client/session.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import logging
22
from datetime import timedelta
3-
from typing import Any, Protocol, Self
3+
from typing import Any, Protocol
44

55
import anyio
66
import anyio.lowlevel
77
from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
88
from jsonschema import SchemaError, ValidationError, validate
99
from pydantic import AnyUrl, TypeAdapter
10+
from typing_extensions import Self
1011

1112
import mcp.types as types
1213
from mcp.shared.async_operations import ClientAsyncOperationManager

0 commit comments

Comments
 (0)