mercurial/streamclone.py
changeset 52691 279e217d6041
parent 52644 e627cc25b6f3
child 52695 f5471af96a52
--- a/mercurial/streamclone.py	Wed Jan 15 06:56:44 2025 +0100
+++ b/mercurial/streamclone.py	Mon Jan 06 20:02:17 2025 -0500
@@ -12,7 +12,7 @@
 import os
 import struct
 
-from typing import Optional
+from typing import Iterator, Optional
 
 from .i18n import _
 from .interfaces import repository
@@ -308,7 +308,7 @@
     return len(entries), total_bytes, emitrevlogdata()
 
 
-def generatev1wireproto(repo):
+def generatev1wireproto(repo) -> Iterator[bytes]:
     """Emit content for version 1 of streaming clone suitable for the wire.
 
     This is the data output from ``generatev1()`` with 2 header lines. The