changeset 43479: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 54f4d094bab1
children 667f56d73ceb
files mercurial/pvec.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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