diff mercurial/policy.py @ 51702:b0a4de6c14f8

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 7f0cb9ee0534
children a3dc962cac62
line wrap: on
line diff
--- a/mercurial/policy.py	Thu Jul 18 12:02:01 2024 +0200
+++ b/mercurial/policy.py	Thu Jul 18 12:03:29 2024 +0200
@@ -37,7 +37,7 @@
 }
 
 try:
-    from . import __modulepolicy__
+    from . import __modulepolicy__  # type: ignore
 
     policy = __modulepolicy__.modulepolicy
 except ImportError: