comparison mercurial/revlog.py @ 51867:766c55492258

typing: add types to `revlog.revlogproblem` These attrs showed as `Any` after the previous commit made the class visible to pytype.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 20 Aug 2024 00:07:05 -0400
parents bcaa5d408657
children 0338fb200a30
comparison
equal deleted inserted replaced
51866:bcaa5d408657 51867:766c55492258
209 revlogrevisiondelta = RevLogRevisionDelta 209 revlogrevisiondelta = RevLogRevisionDelta
210 210
211 211
212 @attr.s(frozen=True) 212 @attr.s(frozen=True)
213 class RevLogProblem: 213 class RevLogProblem:
214 warning = attr.ib(default=None) 214 warning = attr.ib(default=None, type=Optional[bytes])
215 error = attr.ib(default=None) 215 error = attr.ib(default=None, type=Optional[bytes])
216 node = attr.ib(default=None) 216 node = attr.ib(default=None, type=Optional[bytes])
217 217
218 218
219 revlogproblem = interfaceutil.implementer(repository.iverifyproblem)( 219 revlogproblem = interfaceutil.implementer(repository.iverifyproblem)(
220 RevLogProblem 220 RevLogProblem
221 ) 221 )