extensions: hide two confusing import statements from pytype
Differential Revision: https://phab.mercurial-scm.org/D7408
--- 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