comparison mercurial/chgserver.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 92845af308b4
comparison
equal deleted inserted replaced
51701:97d013f48cae 51702:b0a4de6c14f8
149 - mercurial/__version__.py 149 - mercurial/__version__.py
150 - python binary 150 - python binary
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__ 154 from . import __version__ # type: ignore
155 155
156 modules.append(__version__) 156 modules.append(__version__)
157 except ImportError: 157 except ImportError:
158 pass 158 pass
159 files = [] 159 files = []