diff mercurial/linelog.py @ 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 d44e3c45f0e4
children 493034cc3265
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):