##// END OF EJS Templates
cext: add .pyi files for C extensions...
cext: add .pyi files for C extensions I'm unsure if all the annotations are completely accurate. But having these helps type checkers reason about our C extensions. Differential Revision: https://phab.mercurial-scm.org/D9281

File last commit:

r46652:8dca9051 default
r46652:8dca9051 default
Show More
mpatch.pyi
10 lines | 193 B | text/x-python | PythonLexer
from typing import (
List,
)
version: int
class mpatchError(Exception): ...
def patches(text: bytes, bins: List[bytes]) -> bytes: ...
def patchedsize(orig: int, data: bytes) -> int: ...