##// END OF EJS Templates
typing: narrow the scope of some recent disabled import warnings...
Matt Harbison -
r52624:92845af3 default
parent child Browse files
Show More
@@ -151,7 +151,7 b' def _getmtimepaths(ui):'
151 """
151 """
152 modules = [m for n, m in extensions.extensions(ui)]
152 modules = [m for n, m in extensions.extensions(ui)]
153 try:
153 try:
154 from . import __version__ # type: ignore
154 from . import __version__ # pytype: disable=import-error
155
155
156 modules.append(__version__)
156 modules.append(__version__)
157 except ImportError:
157 except ImportError:
@@ -45,7 +45,7 b" policy: bytes = b'allow'"
45 }
45 }
46
46
47 try:
47 try:
48 from . import __modulepolicy__ # type: ignore
48 from . import __modulepolicy__ # pytype: disable=import-error
49
49
50 policy: bytes = __modulepolicy__.modulepolicy
50 policy: bytes = __modulepolicy__.modulepolicy
51 except ImportError:
51 except ImportError:
@@ -1162,7 +1162,7 b' def makeloggingsocket('
1162 def version():
1162 def version():
1163 """Return version information if available."""
1163 """Return version information if available."""
1164 try:
1164 try:
1165 from . import __version__ # type: ignore
1165 from . import __version__ # pytype: disable=import-error
1166
1166
1167 return __version__.version
1167 return __version__.version
1168 except ImportError:
1168 except ImportError:
General Comments 0
You need to be logged in to leave comments. Login now