stubber.utils.stubmaker
¶
Generate stub files for micropython modules using mypy/stubgen
Module Contents¶
Functions¶
|
Generate a .pyi stubfile from a single .py module using mypy/stubgen |
|
Generate typeshed files for all scripts in a folder using mypy/stubgen |
Attributes¶
- stubber.utils.stubmaker.STUBGEN_OPT¶
- stubber.utils.stubmaker.generate_pyi_from_file(file: pathlib.Path) bool ¶
Generate a .pyi stubfile from a single .py module using mypy/stubgen
- Parameters:
file (pathlib.Path) –
- Return type:
- stubber.utils.stubmaker.generate_pyi_files(modules_folder: pathlib.Path) bool ¶
Generate typeshed files for all scripts in a folder using mypy/stubgen
Returns: False if one or more files had an issue generating a stub
- Parameters:
modules_folder (pathlib.Path) –
- Return type: