# HG changeset patch # User Augie Fackler # Date 2019-11-06 20:15:42 # Node ID 8e89b6e1e0cd09a8a7031825685ae4c6c1df3087 # Parent 54f4d094bab1a07924f0bd9f4870479e905420c2 pvec: add an explicit type hint to help pytype Differential Revision: https://phab.mercurial-scm.org/D7279 diff --git a/mercurial/pvec.py b/mercurial/pvec.py --- a/mercurial/pvec.py +++ b/mercurial/pvec.py @@ -74,6 +74,7 @@ def _bin(bs): def _str(v, l): + # type: (int, int) -> bytes bs = b"" for p in pycompat.xrange(l): bs = pycompat.bytechr(v & 255) + bs