hgext/convert/monotone.py
changeset 51815 460e80488cf0
parent 51814 f1ef512e14ab
child 51863 f4733654f144
--- a/hgext/convert/monotone.py	Tue Aug 20 17:46:17 2024 -0400
+++ b/hgext/convert/monotone.py	Tue Aug 20 18:30:47 2024 -0400
@@ -8,6 +8,9 @@
 
 import os
 import re
+from typing import (
+    Tuple,
+)
 
 from mercurial.i18n import _
 from mercurial.pycompat import open
@@ -121,7 +124,7 @@
 
         return self.mtnstdioreadcommandoutput(command)
 
-    def mtnstdioreadpacket(self):
+    def mtnstdioreadpacket(self) -> Tuple[bytes, bytes, int, bytes]:
         read = None
         commandnbr = b''
         while read != b':':
@@ -167,7 +170,7 @@
 
         return (commandnbr, stream, length, read)
 
-    def mtnstdioreadcommandoutput(self, command):
+    def mtnstdioreadcommandoutput(self, command) -> bytes:
         retval = []
         while True:
             commandnbr, stream, length, output = self.mtnstdioreadpacket()