Mercurial > public > mercurial-scm > hg-stable
changeset 52496:f968926a4207
interfaces: convert `repository.iverifyproblem` from zope `Attribute` attrs
This is the same transformation as b455dfddfed0 did for dirstate.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 22 Oct 2024 17:07:23 -0400 |
parents | 1df97507c6b8 |
children | 4ef6dbc27a99 |
files | mercurial/interfaces/repository.py |
diffstat | 1 files changed, 11 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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):