pytype: use the right signature for the `__delitem__`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Dec 2023 22:07:59 +0100
changeset 51302 27c8af87a0c9
parent 51301 4b4253b3ec0a
child 51303 e5b710ce643a
pytype: use the right signature for the `__delitem__` 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:07:21 2023 +0100
+++ b/hgext/remotenames.py	Tue Dec 19 22:07:59 2023 +0100
@@ -137,7 +137,7 @@
     def __setitem__(self, k, v):
         raise NotImplementedError
 
-    def __delitem__(self):
+    def __delitem__(self, k):
         raise NotImplementedError
 
     def _fetchandcache(self, key):