diff mercurial/pvec.py @ 51287:f15cb5111a1e

pytype: move some type comment to proper annotation We support direct type annotations now, while pytype is starting to complains about them.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Dec 2023 21:29:34 +0100
parents d718eddf01d9
children
line wrap: on
line diff
--- a/mercurial/pvec.py	Wed Dec 20 20:13:22 2023 +0100
+++ b/mercurial/pvec.py	Tue Dec 19 21:29:34 2023 +0100
@@ -72,8 +72,7 @@
     return v
 
 
-def _str(v, l):
-    # type: (int, int) -> bytes
+def _str(v: int, l: int) -> bytes:
     bs = b""
     for p in range(l):
         bs = pycompat.bytechr(v & 255) + bs