--- a/mercurial/interfaces/repository.py Tue Dec 10 23:36:14 2024 -0500
+++ b/mercurial/interfaces/repository.py Wed Oct 23 12:21:52 2024 -0400
@@ -15,6 +15,8 @@
Any,
Callable,
Collection,
+ Iterable,
+ Iterator,
Mapping,
Protocol,
)
@@ -608,10 +610,10 @@
nullid: bytes
"""node for the null revision for use as delta base."""
- def __len__(self):
+ def __len__(self) -> int:
"""Obtain the number of revisions stored for this file."""
- def __iter__(self):
+ def __iter__(self) -> Iterator[int]:
"""Iterate over revision numbers for this file."""
def hasnode(self, node):
@@ -967,7 +969,7 @@
callers are expected to handle this special value.
"""
- def verifyintegrity(self, state):
+ def verifyintegrity(self, state) -> Iterable[iverifyproblem]:
"""Verifies the integrity of file storage.
``state`` is a dict holding state of the verifier process. It can be