module documentation

Merges type annotations from pyi files into the corresponding py files.

Class Mode Undocumented
Exception MergeError Wrap exceptions thrown while merging files.
Function merge_files Merges a .py and a .pyi file.
Function merge_sources Undocumented
Function merge_tree Merge .py files in a tree with the corresponding .pyi files.
Function _get_diff Undocumented
Function _merge_csts Undocumented
def merge_files(*, py_path: str, pyi_path: str, mode: Mode, backup: Optional[str] = None) -> bool: (source)

Merges a .py and a .pyi file.

def merge_sources(*, py, pyi): (source)

Undocumented

def merge_tree(*, py_path: str, pyi_path: str, backup: Optional[str] = None, verbose: bool = False) -> Tuple[List[str], List[Tuple[str, MergeError]]]: (source)

Merge .py files in a tree with the corresponding .pyi files.

def _get_diff(a, b): (source)

Undocumented

def _merge_csts(*, py_tree, pyi_tree): (source)

Undocumented