diff -r dcdecec401ca -r cfb4f1dee978 mercurial/wireprotov2server.py --- a/mercurial/wireprotov2server.py Mon Dec 13 14:43:10 2021 -0500 +++ b/mercurial/wireprotov2server.py Mon Dec 13 16:42:36 2021 -0500 @@ -579,10 +579,12 @@ ): continue + # pytype: disable=unsupported-operands caps[b'commands'][command] = { b'args': args, b'permissions': [entry.permission], } + # pytype: enable=unsupported-operands if entry.extracapabilitiesfn: extracaps = entry.extracapabilitiesfn(repo, proto) @@ -608,7 +610,9 @@ if key in target: entry[key] = target[key] + # pytype: disable=attribute-error caps[b'redirect'][b'targets'].append(entry) + # pytype: enable=attribute-error return proto.addcapabilities(repo, caps)