stubber.utils.stubmaker

Generate stub files for micropython modules using mypy/stubgen

Module Contents

Functions

generate_pyi_from_file(→ bool)

Generate a .pyi stubfile from a single .py module using mypy/stubgen

generate_pyi_files(→ bool)

Generate typeshed files for all scripts in a folder using mypy/stubgen

Attributes

STUBGEN_OPT

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:

bool

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:

bool