interfaces: convert `repository.iverifyproblem` from zope `Attribute` attrs
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 22 Oct 2024 17:07:23 -0400
changeset 52467 f968926a4207
parent 52466 1df97507c6b8
child 52468 4ef6dbc27a99
interfaces: convert `repository.iverifyproblem` 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 17:02:21 2024 -0400
+++ b/mercurial/interfaces/repository.py	Tue Oct 22 17:07:23 2024 -0400
@@ -447,18 +447,17 @@
     Instances are essentially messages associated with severity.
     """
 
-    warning = interfaceutil.Attribute(
-        """Message indicating a non-fatal problem."""
-    )
-
-    error = interfaceutil.Attribute("""Message indicating a fatal problem.""")
-
-    node = interfaceutil.Attribute(
-        """Revision encountering the problem.
-
-        ``None`` means the problem doesn't apply to a single revision.
-        """
-    )
+    warning: bytes | None
+    """Message indicating a non-fatal problem."""
+
+    error: bytes | None
+    """Message indicating a fatal problem."""
+
+    node: bytes | None
+    """Revision encountering the problem.
+
+    ``None`` means the problem doesn't apply to a single revision.
+    """
 
 
 class irevisiondelta(Protocol):