Patchwork D7293: changegroup: suppress pytype error that's wrong

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 8:36 a.m.
Message ID <faf938002511d67695e48266625ec2c4@localhost.localdomain>
Download mbox | patch
Permalink /patch/42886/
State Not Applicable
Headers show

Comments

phabricator - Nov. 7, 2019, 8:36 a.m.
Closed by commit rHG5b5e62c24b2e: changegroup: suppress pytype error that&#039;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




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

Patch

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.