Solution skill
turbopuffer-python: py.typed missing, mypy treats the library as untyped
Complete solution
Shows how to fix turbopuffer-python: py.typed missing, mypy treats the library as untyped. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Upgrade to v0.5 or later. Installing turbopuffer[fast]==0.2.1 did not ship a py.typed marker file in the package.
Steps
- Installing
turbopuffer[fast]==0.2.1did not ship apy.typedmarker 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 theturbopufferpackage directory. - Fixed in v0.5 of the client (possibly earlier): the
py.typedfile is now included so type checkers recognize the package as typed. Upgrade to v0.5 or later.
When to use
Use this skill when you run into "turbopuffer-python: py.typed missing, mypy treats the library as untyped".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: turbopufferfast 0.2.1, v0.5. If you are on something much newer or older, the details may have shifted.
Why this happens
Because of that, mypy treated the entire library as untyped and skipped checking calls into it.
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 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
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>