typing: fix a syntax error in mercurial/cext/bdiff.pyi
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 08 Nov 2022 13:38:06 -0500
changeset 49596 b8389533ba3a
parent 49589 266bb5c86f4b
child 49597 b2666e767029
typing: fix a syntax error in mercurial/cext/bdiff.pyi I noticed because `merge-pyi` on the non-cext implementations with this file as input skipped the return type for this. `pytype-single --parse-pyi` confirmed it was a problem.
mercurial/cext/bdiff.pyi
--- a/mercurial/cext/bdiff.pyi	Fri Nov 04 19:38:47 2022 -0400
+++ b/mercurial/cext/bdiff.pyi	Tue Nov 08 13:38:06 2022 -0500
@@ -5,7 +5,7 @@
 
 version: int
 
-def bdiff(a: bytes, b: bytes): bytes
+def bdiff(a: bytes, b: bytes) -> bytes: ...
 def blocks(a: bytes, b: bytes) -> List[Tuple[int, int, int, int]]: ...
 def fixws(s: bytes, allws: bool) -> bytes: ...
 def splitnewlines(text: bytes) -> List[bytes]: ...