# HG changeset patch # User Augie Fackler # Date 1573071342 18000 # Node ID 8e89b6e1e0cd09a8a7031825685ae4c6c1df3087 # Parent 54f4d094bab1a07924f0bd9f4870479e905420c2 pvec: add an explicit type hint to help pytype Differential Revision: https://phab.mercurial-scm.org/D7279 diff -r 54f4d094bab1 -r 8e89b6e1e0cd 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