Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typeshedding CPython documentation

Tool to find missing typeshed stubs and generate type annotated CPython docs.

Type annotated CPython docs are at: https://guoci.github.io/typeshedded_CPython_docs/library

To run:

Edit config.toml

Build modified Pyrefly from source

git clone https://github.com/guoci/pyrefly-for-tscd.git
cd pyrefly-for-tscd
git switch tscd
git restore :/
(cd crates/pyrefly_bundled;
SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt uv run update.py --no-docify ) # update typeshed
cargo build --release

Run tool

  • missing typeshed stubs will be shown
  • type annotated CPython docs will be generated if enabled
uv sync
source .venv/bin/activate
python main.py

About

Add type infomation and typeshed links to the CPython docs

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages