D7279: pvec: add an explicit type hint to help pytype
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Nov 6 22:58:43 UTC 2019
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
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
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list