diff 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
line wrap: on
line diff
--- a/mercurial/chgserver.py	Tue Jul 23 19:20:22 2024 -0400
+++ b/mercurial/chgserver.py	Wed Jul 24 18:17:00 2024 -0400
@@ -151,7 +151,7 @@
     """
     modules = [m for n, m in extensions.extensions(ui)]
     try:
-        from . import __version__  # type: ignore
+        from . import __version__  # pytype: disable=import-error
 
         modules.append(__version__)
     except ImportError: