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

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 8:33 a.m.
Message ID <c4028d9956b664aadc089d952ac3b1f1@localhost.localdomain>
Download mbox | patch
Permalink /patch/42876/
State Not Applicable
Headers show

Comments

phabricator - Nov. 7, 2019, 8:33 a.m.
Closed by commit rHG8e89b6e1e0cd: pvec: add an explicit type hint to help pytype (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7279?vs=17649&id=17695

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7279/new/

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

AFFECTED FILES
  mercurial/pvec.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
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