typing: fix the signature of `treemanifest.fastdelta()`
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 17 Dec 2024 19:29:08 -0500
changeset 52989 d7174b43f3e6
parent 52988 5ec596c91086
child 52990 e70f93318c26
typing: fix the signature of `treemanifest.fastdelta()` We're still missing a few explicit bits of Protocol subclassing, and pytype found this when the subclassing is applied. So fix this first.
mercurial/manifest.py
--- a/mercurial/manifest.py	Wed Feb 19 23:18:17 2025 +0100
+++ b/mercurial/manifest.py	Tue Dec 17 19:29:08 2024 -0500
@@ -1345,7 +1345,7 @@
 
     def fastdelta(
         self, base: ByteString, changes: Iterable[Tuple[bytes, bool]]
-    ) -> ByteString:
+    ) -> tuple[ByteString, ByteString]:
         raise FastdeltaUnavailable()
 
     def diff(