pytype: add type information for `annotateresult.lines`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Dec 2023 21:36:52 +0100
changeset 51295 011eec5a66b2
parent 51294 7d3b92e8df13
child 51296 3972d090aba2
pytype: add type information for `annotateresult.lines` This seems to appease a confused pytype.
mercurial/linelog.py
--- 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):