D7294: cmdutil: suppress bogus pytype errors
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Nov 7 03:38:36 EST 2019
Closed by commit rHG9391784299e9: cmdutil: suppress bogus pytype errors (authored by durin42).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7294?vs=17664&id=17706
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7294/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7294
AFFECTED FILES
mercurial/cmdutil.py
CHANGE DETAILS
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -347,7 +347,7 @@
ui, originalhunks, recordfn, operation
)
except crecordmod.fallbackerror as e:
- ui.warn(b'%s\n' % e.message)
+ ui.warn(b'%s\n' % e.message) # pytype: disable=attribute-error
ui.warn(_(b'falling back to text mode\n'))
return patch.filterpatch(ui, originalhunks, match, operation)
@@ -435,7 +435,7 @@
copymod.copy(status[3]),
copymod.copy(status[4]),
copymod.copy(status[5]),
- copymod.copy(status[6]),
+ copymod.copy(status[6]), # pytype: disable=wrong-arg-count
)
# Force allows -X subrepo to skip the subrepo.
@@ -1289,7 +1289,7 @@
if isinstance(r, revlog.revlog):
pass
elif util.safehasattr(r, b'_revlog'):
- r = r._revlog
+ r = r._revlog # pytype: disable=attribute-error
elif r is not None:
raise error.Abort(_(b'%r does not appear to be a revlog') % r)
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list