pvec: add an explicit type hint to help pytype
authorAugie Fackler <augie@google.com>
Wed, 06 Nov 2019 15:15:42 -0500
changeset 43527 8e89b6e1e0cd
parent 43526 54f4d094bab1
child 43528 667f56d73ceb
pvec: add an explicit type hint to help pytype Differential Revision: https://phab.mercurial-scm.org/D7279
mercurial/pvec.py
--- 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