Patchwork D7385: debugcommands: suppress import errors for pytype

login
register
mail settings
Submitter phabricator
Date Nov. 15, 2019, 4:33 p.m.
Message ID <6a2f2e0d90598ff93998ed288ac7745d@localhost.localdomain>
Download mbox | patch
Permalink /patch/43272/
State Not Applicable
Headers show

Comments

phabricator - Nov. 15, 2019, 4:33 p.m.
durin42 updated this revision to Diff 18157.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7385?vs=18073&id=18157

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7385/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7385

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -1544,7 +1544,7 @@ 
         err = None
         try:
             if cext:
-                from .cext import (
+                from .cext import (  # pytype: disable=import-error
                     base85,
                     bdiff,
                     mpatch,
@@ -1554,7 +1554,7 @@ 
                 # quiet pyflakes
                 dir(bdiff), dir(mpatch), dir(base85), dir(osutil)
             if rustext:
-                from .rustext import (
+                from .rustext import (  # pytype: disable=import-error
                     ancestor,
                     dirstate,
                 )