[Updated] D10876: typing: suppress a false error in mercurial/revlogutils/docket.py on py2

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Thu Jun 17 13:31:23 UTC 2021


Closed by commit rHGbe903d043099: typing: suppress a false error in mercurial/revlogutils/docket.py on py2 (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10876?vs=28559&id=28595

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

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

AFFECTED FILES
  mercurial/revlogutils/docket.py

CHANGE DETAILS

diff --git a/mercurial/revlogutils/docket.py b/mercurial/revlogutils/docket.py
--- a/mercurial/revlogutils/docket.py
+++ b/mercurial/revlogutils/docket.py
@@ -60,7 +60,9 @@
         if pycompat.ispy3:
             iter_seed = iter(seed)
         else:
+            # pytype: disable=wrong-arg-types
             iter_seed = (ord(c) for c in seed)
+            # pytype: enable=wrong-arg-types
         # some basic circular sum hashing on 64 bits
         int_seed = 0
         low_mask = int('1' * 35, 2)



To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210617/6f40e4b4/attachment-0002.html>


More information about the Mercurial-patches mailing list