mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
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:
parent
e824f2b1b3
commit
4ff3782c75
1 changed files with 3 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue