diff mercurial/util.py @ 51689:39e2b2d062c1

pytype: work around wrong ImportError flagging As documented in https://github.com/google/pytype/issues/163, newer versions of Pytype do not understand caught `ImportError`, so we temporarily ignore them where applicable.
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 18 Jul 2024 12:03:29 +0200
parents 5f37c36f36b9
children 493034cc3265
line wrap: on
line diff
--- a/mercurial/util.py	Thu Jul 18 12:02:01 2024 +0200
+++ b/mercurial/util.py	Thu Jul 18 12:03:29 2024 +0200
@@ -1152,7 +1152,7 @@
 def version():
     """Return version information if available."""
     try:
-        from . import __version__
+        from . import __version__  # type: ignore
 
         return __version__.version
     except ImportError: