# HG changeset patch # User Pierre-Yves David # Date 1703018212 -3600 # Node ID 011eec5a66b2de085b74c346ac8b7b0dc63e75fe # Parent 7d3b92e8df13ceb5458800658c9f9407ccfa36f4 pytype: add type information for `annotateresult.lines` This seems to appease a confused pytype. diff -r 7d3b92e8df13 -r 011eec5a66b2 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):