--- a/mercurial/cffi/mpatch.py Tue Nov 08 13:59:16 2022 -0500
+++ b/mercurial/cffi/mpatch.py Tue Nov 08 14:17:56 2022 -0500
@@ -6,6 +6,8 @@
# GNU General Public License version 2 or any later version.
+from typing import List
+
from ..pure.mpatch import *
from ..pure.mpatch import mpatchError # silence pyflakes
from . import _mpatch # pytype: disable=import-error
@@ -26,7 +28,7 @@
return container[0]
-def patches(text, bins):
+def patches(text: bytes, bins: List[bytes]) -> bytes:
lgt = len(bins)
all = []
if not lgt: