comparison mercurial/linelog.py @ 51292: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
comparison
equal deleted inserted replaced
51291:7d3b92e8df13 51292:011eec5a66b2
43 43
44 44
45 @attr.s 45 @attr.s
46 class annotateresult: 46 class annotateresult:
47 rev = attr.ib() 47 rev = attr.ib()
48 lines = attr.ib() 48 lines = attr.ib(type=bytearray)
49 _eof = attr.ib() 49 _eof = attr.ib()
50 50
51 def __iter__(self): 51 def __iter__(self):
52 return iter(self.lines) 52 return iter(self.lines)
53 53