mercurial/interfaces/repository.py
changeset 52432 b2821a846470
parent 52241 d57d1606049c
child 52445 26dd402c3497
--- a/mercurial/interfaces/repository.py	Sat Dec 07 01:57:55 2024 -0500
+++ b/mercurial/interfaces/repository.py	Fri Dec 06 23:03:13 2024 -0500
@@ -405,7 +405,9 @@
         self.path = path
 
     def capable(self, name):
-        caps = self.capabilities()
+        # TODO: this class should maybe subclass ipeercommands too, otherwise it
+        #  is assuming whatever uses this as a mixin also has this interface.
+        caps = self.capabilities()  # pytype: disable=attribute-error
         if name in caps:
             return True