# HG changeset patch # User Pierre-Yves David # Date 2023-12-19 20:36:52 # Node ID 011eec5a66b2de085b74c346ac8b7b0dc63e75fe # Parent 7d3b92e8df13ceb5458800658c9f9407ccfa36f4 pytype: add type information for `annotateresult.lines` This seems to appease a confused pytype. diff --git a/mercurial/linelog.py b/mercurial/linelog.py --- a/mercurial/linelog.py +++ b/mercurial/linelog.py @@ -45,7 +45,7 @@ class lineinfo: @attr.s class annotateresult: rev = attr.ib() - lines = attr.ib() + lines = attr.ib(type=bytearray) _eof = attr.ib() def __iter__(self):