pytype: ignore some signature mismatch in registrar
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Dec 2023 21:40:06 +0100
changeset 51297 4d12ffde8377
parent 51296 3972d090aba2
child 51298 c8a2fdf5ca37
pytype: ignore some signature mismatch in registrar pytype is grumpy about a sub method having a different signature than the one we use here. pytype error: internalmerge: Overriding method signature mismatch [signature-mismatch] Base signature: 'def _funcregistrarbase._extrasetup(self, name, func) -> Any'. Subclass signature: 'def internalmerge._extrasetup(self, name, func, mergetype, onfailure = None, precheck = None, binary = False, symlink = False) -> Any'. Parameter 'mergetype' must have a default value.
mercurial/registrar.py
--- a/mercurial/registrar.py	Tue Dec 19 21:38:46 2023 +0100
+++ b/mercurial/registrar.py	Tue Dec 19 21:40:06 2023 +0100
@@ -524,7 +524,7 @@
         precheck=None,
         binary=False,
         symlink=False,
-    ):
+    ):  # pytype: disable=signature-mismatch
         func.mergetype = mergetype
         func.onfailure = onfailure
         func.precheck = precheck