mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 10:18:08 +02:00
fix: resolve ty 0.0.29 type-checking errors
Bump ty floor to >=0.0.29 and suppress five new false positives from stricter tuple-union indexing, overload return-type inference, and AsyncBaseTransport attribute resolution.
This commit is contained in:
parent
d69a86dccf
commit
9103eb4f35
6 changed files with 27 additions and 27 deletions
|
|
@ -203,7 +203,7 @@ class TestSSLVerify:
|
|||
assert isinstance(client.transport.auth, OAuth)
|
||||
async with client.transport.auth.httpx_client_factory() as httpx_client:
|
||||
assert (
|
||||
httpx_client._transport._pool._ssl_context.verify_mode
|
||||
httpx_client._transport._pool._ssl_context.verify_mode # type: ignore[attr-defined] # ty: ignore[unresolved-attribute]
|
||||
== VerifyMode.CERT_NONE
|
||||
)
|
||||
|
||||
|
|
@ -226,7 +226,7 @@ class TestSSLVerify:
|
|||
assert isinstance(client.transport.auth, OAuth)
|
||||
async with client.transport.auth.httpx_client_factory() as httpx_client:
|
||||
assert (
|
||||
httpx_client._transport._pool._ssl_context.verify_mode
|
||||
httpx_client._transport._pool._ssl_context.verify_mode # type: ignore[attr-defined] # ty: ignore[unresolved-attribute]
|
||||
!= VerifyMode.CERT_NONE
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -583,7 +583,7 @@ class TestMountedTaskMetadata:
|
|||
execution=ToolExecution(taskSupport="optional"),
|
||||
)
|
||||
|
||||
proxy = ProxyTool.from_mcp_tool(lambda: None, mcp_tool)
|
||||
proxy = ProxyTool.from_mcp_tool(lambda: None, mcp_tool) # ty: ignore[invalid-argument-type]
|
||||
result = proxy.to_mcp_tool(name=proxy.name)
|
||||
|
||||
assert result.execution is not None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue