comparison 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
comparison
equal deleted inserted replaced
51701:97d013f48cae 51702:b0a4de6c14f8
35 b'rust+c': ('cext', None), 35 b'rust+c': ('cext', None),
36 b'rust+c-allow': ('cext', 'pure'), 36 b'rust+c-allow': ('cext', 'pure'),
37 } 37 }
38 38
39 try: 39 try:
40 from . import __modulepolicy__ 40 from . import __modulepolicy__ # type: ignore
41 41
42 policy = __modulepolicy__.modulepolicy 42 policy = __modulepolicy__.modulepolicy
43 except ImportError: 43 except ImportError:
44 pass 44 pass
45 45