changeset 43705:1ea33dff7841

extensions: hide two confusing import statements from pytype Differential Revision: https://phab.mercurial-scm.org/D7408
author Augie Fackler <augie@google.com>
date Thu, 14 Nov 2019 15:49:01 -0500
parents 23ad4f0c1578
children ac8fd215a776
files mercurial/extensions.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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