# HG changeset patch # User Matt Harbison # Date 2021-03-26 00:22:00 # Node ID 64400d05db1e91dd8e79af85306355dd08178af4 # Parent 8b6e36e4b553fa382fd46b654e2e6c8d327770c7 util: fix the signature for the pypy override of sortdict.update() PyCharm flagged this as not matching the base class signature. Not sure if there was anything supplying these extra arguments though. Differential Revision: https://phab.mercurial-scm.org/D10275 diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1296,11 +1296,13 @@ class sortdict(collections.OrderedDict): if pycompat.ispypy: # __setitem__() isn't called as of PyPy 5.8.0 - def update(self, src): + def update(self, src, **f): if isinstance(src, dict): src = pycompat.iteritems(src) for k, v in src: self[k] = v + for k in f: + self[k] = f[k] def insert(self, position, key, value): for (i, (k, v)) in enumerate(list(self.items())):