D7293: changegroup: suppress pytype error that's wrong
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Nov 6 23:01:09 UTC 2019
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list