Skip to content

Commit 196d139

Browse files
authored
Merge branch 'main' into feature/1783-minimal-mcp-resources-support
2 parents eb31106 + 949aafa commit 196d139

File tree

5 files changed

+997
-171
lines changed

5 files changed

+997
-171
lines changed

pydantic_ai_slim/pydantic_ai/mcp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -955,9 +955,9 @@ async def client_streams(
955955
MemoryObjectReceiveStream[SessionMessage | Exception],
956956
MemoryObjectSendStream[SessionMessage],
957957
]
958-
]: # pragma: no cover
958+
]:
959959
if self.http_client and self.headers:
960-
raise ValueError('`http_client` is mutually exclusive with `headers`.')
960+
raise ValueError('`http_client` is mutually exclusive with `headers`.') # pragma: no cover
961961

962962
transport_client_partial = functools.partial(
963963
self._transport_client,
@@ -966,7 +966,7 @@ async def client_streams(
966966
sse_read_timeout=self.read_timeout,
967967
)
968968

969-
if self.http_client is not None:
969+
if self.http_client is not None: # pragma: no cover
970970

971971
def httpx_client_factory(
972972
headers: dict[str, str] | None = None,
@@ -1095,7 +1095,7 @@ def __get_pydantic_core_schema__(cls, _: Any, __: Any) -> CoreSchema:
10951095

10961096
@property
10971097
def _transport_client(self):
1098-
return streamablehttp_client # pragma: no cover
1098+
return streamablehttp_client
10991099

11001100
def __eq__(self, value: object, /) -> bool:
11011101
return super().__eq__(value) and isinstance(value, MCPServerStreamableHTTP) and self.url == value.url

0 commit comments

Comments
 (0)