diff -r 52528570312e -r 70f8c64812db mercurial/changegroup.py --- a/mercurial/changegroup.py Sat Mar 13 00:40:46 2021 -0500 +++ b/mercurial/changegroup.py Sat Mar 13 00:41:37 2021 -0500 @@ -1162,9 +1162,10 @@ def makelookupmflinknode(tree, nodes): if fastpathlinkrev: assert not tree - return ( - manifests.__getitem__ - ) # pytype: disable=unsupported-operands + + # pytype: disable=unsupported-operands + return manifests.__getitem__ + # pytype: enable=unsupported-operands def lookupmflinknode(x): """Callback for looking up the linknode for manifests.