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>