Skip to main content

typings🏷️

PyPI version CI Python 3.12+ License: Apache-2.0 Discord

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

uv add --dev rekursiv-ai-typings

See Install for additional details.

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.

Install

uv add --dev rekursiv-ai-typings

If you're missing uv,

  • Mac
    brew install uv
    
  • Linux
    sudo apt install -y curl
    curl -LsSf https://astral.sh/uv/install.sh | sh
    

Or with pip,

python -m pip install rekursiv-ai-typings

Metadata

Release files for rekursiv-ai-typings 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rekursiv-ai-typings 0.1.13
File Size Uploaded Provenance Actions
rekursiv_ai_typings-0.1.13.tar.gz 2.3 MB With provenance Details for rekursiv_ai_typings-0.1.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rekursiv-ai-typings 0.1.13
File Interpreter ABI Platform Actions
rekursiv_ai_typings-0.1.13-py3-none-any.whl Python 3 none any Details for rekursiv_ai_typings-0.1.13-py3-none-any.whl

Total release size: 7.2 MB

Release files / rekursiv_ai_typings-0.1.13.tar.gz

Download URL rekursiv_ai_typings-0.1.13.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
7c7b0543defa668d8be0c775beec4456c631ac2a65323e96e98d3c87b04442ce
BLAKE2b-256 checksum
How to use checksums
3b72f807ddc796864665a924d7552ef59e2aeba6502d749ffd0538d6245c5348
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 Nov 5, 2026.

Transparency log

Release files / rekursiv_ai_typings-0.1.13-py3-none-any.whl

Download URL rekursiv_ai_typings-0.1.13-py3-none-any.whl
Size 4.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
57df41cf7853e292a0550ac718e6bf781b8d270cbdf155e3679ea31042c257bf
BLAKE2b-256 checksum
How to use checksums
f09e5c0518cd5c9569f054fee3648f6cd03663a395e79234e5570b06bc51a0fb
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 Nov 5, 2026.

Transparency log

Security for rekursiv-ai-typings 0.1.13

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.

Select from 2 files

Attestation for rekursiv_ai_typings-0.1.13.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 Nov 5, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page