Skip to content

Commit 99f194f

Browse files
committed
fix tests and readme
1 parent 7b25f8e commit 99f194f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/shared/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Request context for MCP handlers."""
22

33
from dataclasses import dataclass, field
4-
from typing import TYPE_CHECKING, Any, Generic
4+
from typing import TYPE_CHECKING, Any, Generic, Union
55

66
from typing_extensions import TypeVar
77

@@ -14,7 +14,7 @@
1414

1515
SessionT_co = TypeVar(
1616
"SessionT_co",
17-
bound=BaseSession[Any, Any, Any, Any, Any] | "ClientTransportSession" | "ServerTransportSession",
17+
bound=Union[BaseSession[Any, Any, Any, Any, Any], "ClientTransportSession", "ServerTransportSession"],
1818
covariant=True,
1919
)
2020
LifespanContextT = TypeVar("LifespanContextT")

0 commit comments

Comments
 (0)