D7293: changegroup: suppress pytype error that's wrong

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Nov 7 03:36:33 EST 2019


Closed by commit rHG5b5e62c24b2e: changegroup: suppress pytype error that's wrong (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7293?vs=17663&id=17705

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

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

AFFECTED FILES
  mercurial/changegroup.py

CHANGE DETAILS

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -1150,7 +1150,9 @@
         def makelookupmflinknode(tree, nodes):
             if fastpathlinkrev:
                 assert not tree
-                return manifests.__getitem__
+                return (
+                    manifests.__getitem__  # pytype: disable=unsupported-operands
+                )
 
             def lookupmflinknode(x):
                 """Callback for looking up the linknode for manifests.



To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list