interfaces: convert `repository.ifileindex` from zope `Attribute` attrs
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 22 Oct 2024 22:25:18 -0400
changeset 52472 0d4ead4d88bd
parent 52471 4a332b233194
child 52473 a1dd484bf33b
interfaces: convert `repository.ifileindex` from zope `Attribute` attrs This is the same transformation as b455dfddfed0 did for dirstate.
mercurial/interfaces/repository.py
--- a/mercurial/interfaces/repository.py	Thu Oct 24 19:22:56 2024 -0400
+++ b/mercurial/interfaces/repository.py	Tue Oct 22 22:25:18 2024 -0400
@@ -591,9 +591,8 @@
     * Metadata to facilitate storage.
     """
 
-    nullid = interfaceutil.Attribute(
-        """node for the null revision for use as delta base."""
-    )
+    nullid: bytes
+    """node for the null revision for use as delta base."""
 
     def __len__(self):
         """Obtain the number of revisions stored for this file."""