Skip to content

Commit 0163c6d

Browse files
committed
rename CommonBaseSession to AbstractBaseSession
1 parent d0705df commit 0163c6d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/mcp/client/base_client_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
from typing import Any, TypeVar
33

44
from mcp import types
5-
from mcp.shared.session import CommonBaseSession, ProgressFnT
5+
from mcp.shared.session import AbstractBaseSession, ProgressFnT
66
from mcp.types._types import RequestParamsMeta
77

88
ClientSessionT_contra = TypeVar("ClientSessionT_contra", bound="BaseClientSession", contravariant=True)
99

1010

1111
class BaseClientSession(
12-
CommonBaseSession[
12+
AbstractBaseSession[
1313
Any,
1414
types.ClientRequest,
1515
types.ClientNotification,

src/mcp/shared/_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
from typing_extensions import TypeVar
77

8-
from mcp.shared.session import CommonBaseSession
8+
from mcp.shared.session import AbstractBaseSession
99
from mcp.types import RequestId, RequestParamsMeta
1010

11-
SessionT_co = TypeVar("SessionT_co", bound=CommonBaseSession[Any, Any, Any, Any, Any, Any], covariant=True)
11+
SessionT_co = TypeVar("SessionT_co", bound=AbstractBaseSession[Any, Any, Any, Any, Any, Any], covariant=True)
1212

1313

1414
@dataclass(kw_only=True)

src/mcp/shared/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def cancelled(self) -> bool:
155155
return self._cancel_scope.cancel_called
156156

157157

158-
class CommonBaseSession(
158+
class AbstractBaseSession(
159159
ABC,
160160
Generic[
161161
WireMessageT,
@@ -228,7 +228,7 @@ async def send_progress_notification(
228228

229229

230230
class BaseSession(
231-
CommonBaseSession[
231+
AbstractBaseSession[
232232
SessionMessage,
233233
SendRequestT,
234234
SendNotificationT,

0 commit comments

Comments
 (0)