Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/chgserver.py @ 51748: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 | 8b2ea2246a5f |
children | 7f0cb9ee0534 |
comparison
equal
deleted
inserted
replaced
51747:25e7f9dcad0f | 51748:39e2b2d062c1 |
---|---|
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 = [] |