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:
Jeremiah Lowin 2026-04-07 19:40:46 -04:00
commit 9103eb4f35
No known key found for this signature in database
6 changed files with 27 additions and 27 deletions

View file

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

View file

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