##// END OF EJS Templates
typing: make the revlog classes known to pytype...
Matt Harbison -
r53102:bcaa5d40 default
parent child Browse files
Show More
@@ -186,9 +186,8 HAS_FAST_PERSISTENT_NODEMAP = rustrevlog
186 )
186 )
187
187
188
188
189 @interfaceutil.implementer(repository.irevisiondelta)
190 @attr.s(slots=True)
189 @attr.s(slots=True)
191 class revlogrevisiondelta:
190 class RevLogRevisionDelta:
192 node = attr.ib()
191 node = attr.ib()
193 p1node = attr.ib()
192 p1node = attr.ib()
194 p2node = attr.ib()
193 p2node = attr.ib()
@@ -202,14 +201,29 class revlogrevisiondelta:
202 linknode = attr.ib(default=None)
201 linknode = attr.ib(default=None)
203
202
204
203
205 @interfaceutil.implementer(repository.iverifyproblem)
204 revlogrevisiondelta = interfaceutil.implementer(repository.irevisiondelta)(
205 RevLogRevisionDelta
206 )
207
208 if typing.TYPE_CHECKING:
209 revlogrevisiondelta = RevLogRevisionDelta
210
211
206 @attr.s(frozen=True)
212 @attr.s(frozen=True)
207 class revlogproblem:
213 class RevLogProblem:
208 warning = attr.ib(default=None)
214 warning = attr.ib(default=None)
209 error = attr.ib(default=None)
215 error = attr.ib(default=None)
210 node = attr.ib(default=None)
216 node = attr.ib(default=None)
211
217
212
218
219 revlogproblem = interfaceutil.implementer(repository.iverifyproblem)(
220 RevLogProblem
221 )
222
223 if typing.TYPE_CHECKING:
224 revlogproblem = RevLogProblem
225
226
213 def parse_index_v1(data, inline):
227 def parse_index_v1(data, inline):
214 # call the C implementation to parse the index data
228 # call the C implementation to parse the index data
215 index, cache = parsers.parse_index2(data, inline)
229 index, cache = parsers.parse_index2(data, inline)
General Comments 0
You need to be logged in to leave comments. Login now