Patchwork D7385: debugcommands: suppress import errors for pytype

login
register
mail settings
Submitter phabricator
Date Nov. 19, 2019, 3:51 a.m.
Message ID <4ce6cd308b54b6daf9f225ef41266ee3@localhost.localdomain>
Download mbox | patch
Permalink /patch/43349/
State Not Applicable
Headers show

Comments

phabricator - Nov. 19, 2019, 3:51 a.m.
Closed by commit rHGa9b14ef701d1: debugcommands: suppress import errors for pytype (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/D7385?vs=18157&id=18226

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, indygreg
Cc: dlax, mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -1561,7 +1561,7 @@ 
         err = None
         try:
             if cext:
-                from .cext import (
+                from .cext import (  # pytype: disable=import-error
                     base85,
                     bdiff,
                     mpatch,
@@ -1571,7 +1571,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,
                 )