Patchwork D7279: pvec: add an explicit type hint to help pytype

login
register
mail settings
Submitter phabricator
Date Nov. 6, 2019, 10:58 p.m.
Message ID <differential-rev-PHID-DREV-modomzmcjqhbknt756y5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42830/
State Superseded
Headers show

Comments

phabricator - Nov. 6, 2019, 10:58 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7279

AFFECTED FILES
  mercurial/pvec.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/pvec.py b/mercurial/pvec.py
--- a/mercurial/pvec.py
+++ b/mercurial/pvec.py
@@ -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