From 4ff3782c75b4eee14ccddaf1bf33695731e6e043 Mon Sep 17 00:00:00 2001 From: Marvin Context Protocol <41898282+Marvin Context Protocol@users.noreply.github.com> Date: Sat, 7 Mar 2026 15:42:03 +0000 Subject: [PATCH] Fix ty type-check failure in test factory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jeremiah Lowin 🤖 Generated with Claude Code --- tests/client/transports/test_transports.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/client/transports/test_transports.py b/tests/client/transports/test_transports.py index b0c00c39c..d394cb2ac 100644 --- a/tests/client/transports/test_transports.py +++ b/tests/client/transports/test_transports.py @@ -48,13 +48,13 @@ async def test_oauth_uses_same_client_as_transport_sse(): async def test_streamable_http_factory_disables_redirects(): captured_kwargs: dict[str, object] = {} - def factory(**kwargs): + def factory(**kwargs: object) -> httpx.AsyncClient: captured_kwargs.update(kwargs) - return httpx.AsyncClient(**kwargs) + return httpx.AsyncClient(**kwargs) # type: ignore[arg-type] transport = StreamableHttpTransport( "https://some.fake.url/", - httpx_client_factory=factory, + httpx_client_factory=factory, # type: ignore[arg-type] ) with patch(