# HG changeset patch # User Matt Harbison # Date 2024-10-23 02:52:08 # Node ID ed70604d6e073bd95a2e5dac041a586288692a9a # Parent 22f97aa5e8b2b30d3384758b9135bb562ef2eb51 interfaces: convert `repository.imanifestlog` from zope `Attribute` attrs This is the same transformation as b455dfddfed0 did for dirstate. diff --git a/mercurial/interfaces/repository.py b/mercurial/interfaces/repository.py --- a/mercurial/interfaces/repository.py +++ b/mercurial/interfaces/repository.py @@ -1552,13 +1552,11 @@ class imanifestlog(Protocol): tree manifests. """ - nodeconstants = interfaceutil.Attribute( - """nodeconstants used by the current repository.""" - ) - - narrowed = interfaceutil.Attribute( - """True, is the manifest is narrowed by a matcher""" - ) + nodeconstants: NodeConstants + """nodeconstants used by the current repository.""" + + narrowed: bool + """True, is the manifest is narrowed by a matcher""" def __getitem__(self, node): """Obtain a manifest instance for a given binary node.