comparison mercurial/changegroup.py @ 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 313e3a279828
comparison
equal deleted inserted replaced
43489:ea0b44255a31 43490:5b5e62c24b2e
1148 # revisions. 1148 # revisions.
1149 # Returns the linkrev node (collected in lookupcl). 1149 # Returns the linkrev node (collected in lookupcl).
1150 def makelookupmflinknode(tree, nodes): 1150 def makelookupmflinknode(tree, nodes):
1151 if fastpathlinkrev: 1151 if fastpathlinkrev:
1152 assert not tree 1152 assert not tree
1153 return manifests.__getitem__ 1153 return (
1154 manifests.__getitem__ # pytype: disable=unsupported-operands
1155 )
1154 1156
1155 def lookupmflinknode(x): 1157 def lookupmflinknode(x):
1156 """Callback for looking up the linknode for manifests. 1158 """Callback for looking up the linknode for manifests.
1157 1159
1158 Returns the linkrev node for the specified manifest. 1160 Returns the linkrev node for the specified manifest.