typings🏷️
Type stubs for third-party libraries, written by hand. Some of these libraries
ship no types at all. Others ship types that basedpyright and ty reject in
strict mode.
Quick Start
# Mac:
# # Required for quick install.
# brew install uv
# Ubuntu/Debian:
# # Required for quick install.
# sudo apt-get install -y curl
# curl -LsSf https://astral.sh/uv/install.sh | sh
uv add --dev rekursiv-ai-typings
# Alternatively: python -m pip install rekursiv-ai-typings
There is nothing to configure. Each library's stubs install as a separate
<pkg>-stubs package (the standard PEP 561 layout), and both checkers look for
those automatically.
Example
import yaml
data = yaml.safe_load("a: 1")
reveal_type(data) # object, not Any
Features
Override one library
If you want your own stubs for a library instead of ours, put them in your
project and they take priority. Name the directory <pkg>-stubs:
typings/<pkg>-stubs/__init__.pyi
Then tell both checkers where to look:
[tool.basedpyright]
stubPath = "typings"
[tool.ty.environment]
extra-paths = ["typings"]
The -stubs suffix matters. If you name the directory <pkg>, ty ignores it
and uses ours.
Partial stubs
Some stubs cover only part of a library: fastapi, starlette, lxml,
curl_cffi, lark, optax, sklearn, and torch. Each of these is marked
partial, so for any module we don't stub, the checkers fall back to the
library's own types.
Triton on macOS
triton only installs on Linux. On macOS, basedpyright reports
reportMissingModuleSource on every import triton. To fix that, this package
also installs placeholder .py files for triton. Add their location to
extraPaths:
[tool.basedpyright]
extraPaths = [".venv/share/rekursiv-ai-typings"]
The placeholders only make the import resolve. The types still come from our stubs.
Patched standard library
rekursiv-ai-typeshed, in typeshed/, is a separate package from this repo.
It fixes the standard-library stubs so that x ** 0.5 is a float rather
than Any. See typeshed/README.md.
Metadata
Release files for rekursiv-ai-typings 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rekursiv_ai_typings-0.1.5.tar.gz | 2.3 MB | With provenance | Details for rekursiv_ai_typings-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rekursiv_ai_typings-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for rekursiv_ai_typings-0.1.5-py3-none-any.whl |
Total release size: 7.1 MB
Release files / rekursiv_ai_typings-0.1.5.tar.gz
| Download URL | rekursiv_ai_typings-0.1.5.tar.gz |
|---|---|
| Size | 2.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af10c0a8424aba5eb99e28d0c615fb5fbcf4b6130b269336e91705b65fb6a230
|
|
BLAKE2b-256 checksum How to use checksums |
159f1a69fadd50bcf6529239f1d6fde10680cfdb9a398a36c717d8c656351219
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / rekursiv_ai_typings-0.1.5-py3-none-any.whl
| Download URL | rekursiv_ai_typings-0.1.5-py3-none-any.whl |
|---|---|
| Size | 4.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71718ccd4fa4fd265bf13aed83db03e955effe5c69b9c558f7543710c439d270
|
|
BLAKE2b-256 checksum How to use checksums |
e9d60a360e153c2fe1f760b4f6706302ebdc6ba5b51d9935ce48f6e4bcb31062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logSecurity for rekursiv-ai-typings 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rekursiv_ai_typings-0.1.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.