# HG changeset patch # User Matt Harbison # Date 1616718120 14400 # 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 -r 8b6e36e4b553 -r 64400d05db1e mercurial/util.py --- a/mercurial/util.py Thu Mar 25 18:59:14 2021 -0400 +++ b/mercurial/util.py Thu Mar 25 20:22:00 2021 -0400 @@ -1296,11 +1296,13 @@ 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())):