diff mercurial/pvec.py @ 43527:8e89b6e1e0cd

pvec: add an explicit type hint to help pytype Differential Revision: https://phab.mercurial-scm.org/D7279
author Augie Fackler <augie@google.com>
date Wed, 06 Nov 2019 15:15:42 -0500
parents 90aac60b6697
children 29adf0a087a1
line wrap: on
line diff
--- a/mercurial/pvec.py	Wed Nov 06 15:12:46 2019 -0500
+++ b/mercurial/pvec.py	Wed Nov 06 15:15:42 2019 -0500
@@ -74,6 +74,7 @@
 
 
 def _str(v, l):
+    # type: (int, int) -> bytes
     bs = b""
     for p in pycompat.xrange(l):
         bs = pycompat.bytechr(v & 255) + bs