changeset 51825:766c55492258

typing: add types to `revlog.revlogproblem` These attrs showed as `Any` after the previous commit made the class visible to pytype.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 20 Aug 2024 00:07:05 -0400
parents bcaa5d408657
children 0338fb200a30
files mercurial/revlog.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Mon Aug 19 22:46:09 2024 -0400
+++ b/mercurial/revlog.py	Tue Aug 20 00:07:05 2024 -0400
@@ -211,9 +211,9 @@
 
 @attr.s(frozen=True)
 class RevLogProblem:
-    warning = attr.ib(default=None)
-    error = attr.ib(default=None)
-    node = attr.ib(default=None)
+    warning = attr.ib(default=None, type=Optional[bytes])
+    error = attr.ib(default=None, type=Optional[bytes])
+    node = attr.ib(default=None, type=Optional[bytes])
 
 
 revlogproblem = interfaceutil.implementer(repository.iverifyproblem)(