mercurial/interfaces/modules.py
changeset 51960 d7f17819ae9e
parent 51936 54d9f496f07a
equal deleted inserted replaced
51959:5e2f0fec0a47 51960:d7f17819ae9e
    71     def jsonescapeu8fast(self, u8chars: bytes, paranoid: bool) -> bytes:
    71     def jsonescapeu8fast(self, u8chars: bytes, paranoid: bool) -> bytes:
    72         """Convert a UTF-8 byte string to JSON-escaped form (fast path)
    72         """Convert a UTF-8 byte string to JSON-escaped form (fast path)
    73 
    73 
    74         Raises ValueError if non-ASCII characters have to be escaped.
    74         Raises ValueError if non-ASCII characters have to be escaped.
    75         """
    75         """
       
    76 
       
    77 
       
    78 class MPatch(Protocol):
       
    79     """A protocol class for the various mpatch module implementations."""
       
    80 
       
    81     def patches(self, a: bytes, bins: List[bytes]) -> bytes:
       
    82         ...
       
    83 
       
    84     def patchedsize(self, orig: int, delta: bytes) -> int:
       
    85         ...