extensions: hide two confusing import statements from pytype
authorAugie Fackler <augie@google.com>
Thu, 14 Nov 2019 15:49:01 -0500
changeset 43705 1ea33dff7841
parent 43704 23ad4f0c1578
child 43706 ac8fd215a776
extensions: hide two confusing import statements from pytype Differential Revision: https://phab.mercurial-scm.org/D7408
mercurial/extensions.py
--- a/mercurial/extensions.py	Thu Nov 14 13:27:57 2019 -0500
+++ b/mercurial/extensions.py	Thu Nov 14 15:49:01 2019 -0500
@@ -781,7 +781,7 @@
 def disabled():
     '''find disabled extensions from hgext. returns a dict of {name: desc}'''
     try:
-        from hgext import __index__
+        from hgext import __index__  # pytype: disable=import-error
 
         return dict(
             (name, gettext(desc))
@@ -807,7 +807,7 @@
 def disabledext(name):
     '''find a specific disabled extension from hgext. returns desc'''
     try:
-        from hgext import __index__
+        from hgext import __index__  # pytype: disable=import-error
 
         if name in _order:  # enabled
             return