interfaces: convert `repository.ipeerrequests` from zope `Attribute` attrs
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 22 Oct 2024 16:56:53 -0400
changeset 52465 4cc186255672
parent 52464 73a46cef57c9
child 52466 1df97507c6b8
interfaces: convert `repository.ipeerrequests` from zope `Attribute` attrs This is the same transformation as b455dfddfed0 did for dirstate.
mercurial/interfaces/repository.py
--- a/mercurial/interfaces/repository.py	Tue Oct 22 16:52:39 2024 -0400
+++ b/mercurial/interfaces/repository.py	Tue Oct 22 16:56:53 2024 -0400
@@ -373,9 +373,8 @@
 class ipeerrequests(Protocol):
     """Interface for executing commands on a peer."""
 
-    limitedarguments = interfaceutil.Attribute(
-        """True if the peer cannot receive large argument value for commands."""
-    )
+    limitedarguments: bool
+    """True if the peer cannot receive large argument value for commands."""
 
     def commandexecutor(self):
         """A context manager that resolves to an ipeercommandexecutor.