pytype: ignore some signature mismatch in configitems
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Dec 2023 21:26:30 +0100
changeset 51292 9c5bd485fbb6
parent 51291 0bb5299800ca
child 51293 03fc41fe8aa1
pytype: ignore some signature mismatch in configitems pytype is grumpy about the dict.update having a more complex signature than the one we use here. pytype error: itemregister: Overriding method signature mismatch [signature-mismatch] Base signature: 'def builtins.dict.update(self) -> None'. Subclass signature: 'def itemregister.update(self, other) -> Any'. Parameter 'other' must have a default value.
mercurial/configitems.py
--- a/mercurial/configitems.py	Wed Dec 20 16:30:32 2023 +0100
+++ b/mercurial/configitems.py	Tue Dec 19 21:26:30 2023 +0100
@@ -82,7 +82,7 @@
         super(itemregister, self).__init__()
         self._generics = set()
 
-    def update(self, other):
+    def update(self, other):  # pytype: disable=signature-mismatch
         super(itemregister, self).update(other)
         self._generics.update(other._generics)