Metadata-Version: 2.5
Name: rekursiv-ai-typeshed
Version: 0.1.4
Summary: Standard-library stubs for ty and basedpyright, with x ** 0.5 typed as float.
Project-URL: Homepage, https://www.rekursiv.ai
Project-URL: Repository, https://github.com/rekursiv-ai/typings
Project-URL: Source, https://github.com/rekursiv-ai/typings/tree/main/typeshed
Project-URL: Issues, https://github.com/rekursiv-ai/typings/issues
Project-URL: Changelog, https://github.com/rekursiv-ai/typings/releases
Author-email: "rekursiv.ai" <hello@rekursiv.ai>
License-Expression: Apache-2.0
Keywords: basedpyright,pyi,ty,typeshed,typing
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Stubs Only
Requires-Python: >=3.12
Requires-Dist: basedpyright>=1.40.1
Requires-Dist: ty>=0.0.84
Description-Content-Type: text/markdown

# typeshed🛖

Standard-library stubs for `ty` and `basedpyright`, patched so that `x ** 0.5`
is a `float` rather than `Any`.

Both checkers bundle typeshed, which says `int.__pow__` and `float.__pow__`
return `Any`. If you enable `reportAny`, every `**` in your code becomes a
warning. Neither checker lets you patch a single stdlib file, so this package
installs a full patched copy of the stdlib stubs for each checker. The copy is
built from whichever `ty` and `basedpyright` you have installed, so it always
matches them.

## Install

```bash
uv add --dev rekursiv-ai-typeshed
```

## Configure

Point each checker at its copy in `pyproject.toml`:

```toml
[tool.basedpyright]
typeshedPath = ".venv/share/rekursiv-ai-typeshed/basedpyright"

[tool.ty.environment]
typeshed = ".venv/share/rekursiv-ai-typeshed/ty"
```
