stubber.utils.stubmaker

Module Contents

Functions

cleanup(modules_folder: pathlib.Path, all_pyi: bool = False)

Q&D cleanup

generate_pyi_from_file(file: pathlib.Path) → bool

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

fix_umqtt_init(modules_path: pathlib.Path)

generate_pyi_files(modules_folder: pathlib.Path) → bool

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

Attributes

log

STUBGEN_OPT

stubber.utils.stubmaker.log
stubber.utils.stubmaker.STUBGEN_OPT
stubber.utils.stubmaker.cleanup(modules_folder: pathlib.Path, all_pyi: bool = False)

Q&D cleanup

Parameters
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.fix_umqtt_init(modules_path: pathlib.Path)
Parameters

modules_path (pathlib.Path) –

stubber.utils.stubmaker.generate_pyi_files(modules_folder: pathlib.Path) bool

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

Parameters

modules_folder (pathlib.Path) –

Return type

bool