Mercurial > public > mercurial-scm > hg-stable
diff mercurial/policy.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 | a3dc962cac62 |
children | f4733654f144 |
line wrap: on
line diff
--- a/mercurial/policy.py Tue Jul 23 19:20:22 2024 -0400 +++ b/mercurial/policy.py Wed Jul 24 18:17:00 2024 -0400 @@ -45,7 +45,7 @@ } try: - from . import __modulepolicy__ # type: ignore + from . import __modulepolicy__ # pytype: disable=import-error policy: bytes = __modulepolicy__.modulepolicy except ImportError: