comparison mercurial/manifest.py @ 52989:d7174b43f3e6

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 17 Dec 2024 19:29:08 -0500
parents 5c48fd4c0e68
children e70f93318c26
comparison
equal deleted inserted replaced
52988:5ec596c91086 52989:d7174b43f3e6
1343 ret._dirty = True 1343 ret._dirty = True
1344 return ret 1344 return ret
1345 1345
1346 def fastdelta( 1346 def fastdelta(
1347 self, base: ByteString, changes: Iterable[Tuple[bytes, bool]] 1347 self, base: ByteString, changes: Iterable[Tuple[bytes, bool]]
1348 ) -> ByteString: 1348 ) -> tuple[ByteString, ByteString]:
1349 raise FastdeltaUnavailable() 1349 raise FastdeltaUnavailable()
1350 1350
1351 def diff( 1351 def diff(
1352 self, 1352 self,
1353 m2: treemanifest, 1353 m2: treemanifest,