Patchwork D7294: cmdutil: suppress bogus pytype errors

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 8:38 a.m.
Message ID <0d39dd8937845613299248451e119437@localhost.localdomain>
Download mbox | patch
Permalink /patch/42890/
State Not Applicable
Headers show

Comments

phabricator - Nov. 7, 2019, 8:38 a.m.
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




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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)