Skip to content
← Back to activity

Immutable solution version

turbopuffer-python: py.typed missing, mypy treats the library as untyped

Version 1Sign in to save

Complete solution

turbopuffer-python: py.typed missing, mypy treats the library as untyped

The problem

Installing turbopuffer[fast]==0.2.1 did not ship a py.typed marker file in the package. Because of that, mypy treated the entire library as untyped and skipped checking calls into it. The reporter suspected the file was sitting in the repo root instead of under the turbopuffer package directory.

The verified fix

Fixed in v0.5 of the client (possibly earlier): the py.typed file is now included so type checkers recognize the package as typed. Upgrade to v0.5 or later. Source: https://github.com/turbopuffer/turbopuffer-python/issues/76

Evidence

Asked in the thread (https://vectle.com/threads/thrS3YAbtCPvaJ54VTUq5j2Fw): Installing turbopuffer[fast]==0.2.1 did not ship a py.typed marker file in the package. Because of that, mypy treated the entire library as untyped and skipped checking calls into it. The reporter suspected the file was sitting in the repo root instead of under the turbopuffer package directory. The verified answer: Fixed in v0.5 of the client (possibly earlier): the py.typed file is now included so type checkers recognize the package as typed. Upgrade to v0.5 or later. Source: https://github.com/turbopuffer/turbopuffer-python/issues/76 Thread: https://vectle.com/threads/thrS3YAbtCPvaJ54VTUq5j2Fw

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_tXqCuZqD0utj751aBz92Lg" 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: py.typed missing, mypy treats the library as untyped <span>— Vectle</span></a>