##// END OF EJS Templates
cmdutil: suppress bogus pytype errors...
Augie Fackler -
r43792:93917842 default
parent child Browse files
Show More
@@ -347,7 +347,7 b' def filterchunks(ui, originalhunks, usec'
347 ui, originalhunks, recordfn, operation
347 ui, originalhunks, recordfn, operation
348 )
348 )
349 except crecordmod.fallbackerror as e:
349 except crecordmod.fallbackerror as e:
350 ui.warn(b'%s\n' % e.message)
350 ui.warn(b'%s\n' % e.message) # pytype: disable=attribute-error
351 ui.warn(_(b'falling back to text mode\n'))
351 ui.warn(_(b'falling back to text mode\n'))
352
352
353 return patch.filterpatch(ui, originalhunks, match, operation)
353 return patch.filterpatch(ui, originalhunks, match, operation)
@@ -435,7 +435,7 b' def dorecord('
435 copymod.copy(status[3]),
435 copymod.copy(status[3]),
436 copymod.copy(status[4]),
436 copymod.copy(status[4]),
437 copymod.copy(status[5]),
437 copymod.copy(status[5]),
438 copymod.copy(status[6]),
438 copymod.copy(status[6]), # pytype: disable=wrong-arg-count
439 )
439 )
440
440
441 # Force allows -X subrepo to skip the subrepo.
441 # Force allows -X subrepo to skip the subrepo.
@@ -1289,7 +1289,7 b' def openstorage(repo, cmd, file_, opts, '
1289 if isinstance(r, revlog.revlog):
1289 if isinstance(r, revlog.revlog):
1290 pass
1290 pass
1291 elif util.safehasattr(r, b'_revlog'):
1291 elif util.safehasattr(r, b'_revlog'):
1292 r = r._revlog
1292 r = r._revlog # pytype: disable=attribute-error
1293 elif r is not None:
1293 elif r is not None:
1294 raise error.Abort(_(b'%r does not appear to be a revlog') % r)
1294 raise error.Abort(_(b'%r does not appear to be a revlog') % r)
1295
1295
General Comments 0
You need to be logged in to leave comments. Login now