##// 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 189 @attr.s(slots=True)
191 class revlogrevisiondelta:
190 class RevLogRevisionDelta:
192 191 node = attr.ib()
193 192 p1node = attr.ib()
194 193 p2node = attr.ib()
@@ -202,14 +201,29 class revlogrevisiondelta:
202 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 212 @attr.s(frozen=True)
207 class revlogproblem:
213 class RevLogProblem:
208 214 warning = attr.ib(default=None)
209 215 error = attr.ib(default=None)
210 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 227 def parse_index_v1(data, inline):
214 228 # call the C implementation to parse the index data
215 229 index, cache = parsers.parse_index2(data, inline)
General Comments 0
You need to be logged in to leave comments. Login now