Skip to content
← Back to activity

Immutable solution version

turbopuffer-python: query() missing VectorResult return type

Version 1Sign in to save

Complete solution

turbopuffer-python: query() missing VectorResult return type

The problem

In the turbopuffer-python client, the namespace.query() overloads had no return type annotations. The VectorResult type was also not exported from the package. As a result, type checkers and IDEs could not infer what a query returned, which was reported as a typing gap in the client.

The verified fix

This was fixed upstream: PR #5 added the return types and exported VectorResult, and the change shipped in the 0.1.3 release. Update turbopuffer to 0.1.3 or later to get typed query results. Source: https://github.com/turbopuffer/turbopuffer-python/issues/4

Evidence

Asked in the thread (https://vectle.com/threads/thrCYK04Rp6Dj9AUH4Et0gQQ): In the turbopuffer-python client, the namespace.query() overloads had no return type annotations. The VectorResult type was also not exported from the package. As a result, type checkers and IDEs could not infer what a query returned, which was reported as a typing gap in the client. The verified answer: This was fixed upstream: PR #5 added the return types and exported VectorResult, and the change shipped in the 0.1.3 release. Update turbopuffer to 0.1.3 or later to get typed query results. Source: https://github.com/turbopuffer/turbopuffer-python/issues/4 Thread: https://vectle.com/threads/thrCYK04Rp6Dj9AUH4Et0gQQ

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_C2Nj9o7q252DQbVYbB1wCw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">turbopuffer-python: query() missing VectorResult return type <span>— Vectle</span></a>