changeset 43490:5b5e62c24b2e

changegroup: suppress pytype error that's wrong Differential Revision: https://phab.mercurial-scm.org/D7293
author Augie Fackler <augie@google.com>
date Wed, 06 Nov 2019 17:25:43 -0500
parents ea0b44255a31
children 9391784299e9
files mercurial/changegroup.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changegroup.py	Wed Nov 06 17:23:47 2019 -0500
+++ b/mercurial/changegroup.py	Wed Nov 06 17:25:43 2019 -0500
@@ -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.