Skip to content

Code to generate typesheds (a.k.a.: interface stubs, `pyi` files, and type hints) for MicroPython from restructured text files (`.rst`).

License

Notifications You must be signed in to change notification settings

hlovatt/PyBoardTypeshedGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micropython Typeshed Generator (formerly known as PyBoard Typeshed Generator)

Code to generate typesheds (type hint interface stubs .pyi) from restructured text help files (.rst) as used in MicroPython. This code generates the typesheds in PyBoardTypeshed repository. The README for the typeshed repository describes how to use the typesheds.

See doc comment in rsi2pyi.py for a brief description of how to write translators.

Run:

    cd <directory of PyBoardTypeShedGenerator>
    python3 main.py <destination directory>

or if main.py is executable:

    cd <directory of PyBoardTypeShedGenerator>
    ./main.py <destination directory>

About

Code to generate typesheds (a.k.a.: interface stubs, `pyi` files, and type hints) for MicroPython from restructured text files (`.rst`).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages