changeset 51295:011eec5a66b2

pytype: add type information for `annotateresult.lines` This seems to appease a confused pytype.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Dec 2023 21:36:52 +0100
parents 7d3b92e8df13
children 3972d090aba2
files mercurial/linelog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/linelog.py	Tue Dec 19 21:34:47 2023 +0100
+++ b/mercurial/linelog.py	Tue Dec 19 21:36:52 2023 +0100
@@ -45,7 +45,7 @@
 @attr.s
 class annotateresult:
     rev = attr.ib()
-    lines = attr.ib()
+    lines = attr.ib(type=bytearray)
     _eof = attr.ib()
 
     def __iter__(self):