pytype: use the right signature for the `__setitem__`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Dec 2023 22:07:21 +0100
changeset 51301 4b4253b3ec0a
parent 51300 fa87eeeb10ca
child 51302 27c8af87a0c9
pytype: use the right signature for the `__setitem__` It is not because it is NotImplemented that it should use a bad signature. Fix it to please pytype.
hgext/remotenames.py
--- a/hgext/remotenames.py	Tue Dec 19 22:03:34 2023 +0100
+++ b/hgext/remotenames.py	Tue Dec 19 22:07:21 2023 +0100
@@ -134,7 +134,7 @@
     def __len__(self):
         return len(self.potentialentries)
 
-    def __setitem__(self):
+    def __setitem__(self, k, v):
         raise NotImplementedError
 
     def __delitem__(self):