comparison mercurial/chgserver.py @ 51789:92845af308b4

typing: narrow the scope of some recent disabled import warnings These comments were added in 39e2b2d062c1, but had the effect of changing the known type to `Any`, which cascaded through a few function signatures. Just ignore the import error instead.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 24 Jul 2024 18:17:00 -0400
parents b0a4de6c14f8
children f4733654f144
comparison
equal deleted inserted replaced
51788:278af66e6595 51789:92845af308b4
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__ # type: ignore 154 from . import __version__ # pytype: disable=import-error
155 155
156 modules.append(__version__) 156 modules.append(__version__)
157 except ImportError: 157 except ImportError:
158 pass 158 pass
159 files = [] 159 files = []