changeset 51301:4b4253b3ec0a

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Dec 2023 22:07:21 +0100
parents fa87eeeb10ca
children 27c8af87a0c9
files hgext/remotenames.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):