mercurial/cext/mpatch.pyi
author Gregory Szorc <gregory.szorc@gmail.com>
Tue, 01 Mar 2022 20:52:32 -0800
changeset 49026 2cce2fa5bcf7
parent 46042 8dca9051a859
permissions -rw-r--r--
py3: replace pycompat.itervalues(x) with x.values() pycompat.itervalues(x) just calls x.values(). So this is equivalent. The rewrite was perfomed via an automated search and replace. Differential Revision: https://phab.mercurial-scm.org/D12341

from typing import (
    List,
)

version: int

class mpatchError(Exception): ...

def patches(text: bytes, bins: List[bytes]) -> bytes: ...
def patchedsize(orig: int, data: bytes) -> int: ...