Fix ty type-check failure in test factory

Co-authored-by: Jeremiah Lowin <jlowin@users.noreply.github.com>

🤖 Generated with Claude Code
This commit is contained in:
Marvin Context Protocol 2026-03-07 15:42:03 +00:00
commit 4ff3782c75

View file

@ -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(