Mercurial > public > mercurial-scm > hg-stable
diff hgext/releasenotes.py @ 49931:de9ffb82ef4d
typing: suppress a bunch of potential import-error cases in extensions
As flagged by pytype locally. Either the ImportError is locally handled, or the
imported module was previously determined to be present by `hgave` (for the
phabricator extension), or is handled by the `hgext.convert.subversion` module
when imported (for the `hgext.convert.transport` module).
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 06 Jan 2023 13:04:50 -0500 |
parents | 943509a58d29 |
children | a47e86e8fd51 |
line wrap: on
line diff
--- a/hgext/releasenotes.py Thu Jan 05 00:09:48 2023 -0500 +++ b/hgext/releasenotes.py Fri Jan 06 13:04:50 2023 -0500 @@ -50,7 +50,7 @@ module="fuzzywuzzy.fuzz", ) - import fuzzywuzzy.fuzz as fuzz + import fuzzywuzzy.fuzz as fuzz # pytype: disable=import-error fuzz.token_set_ratio except ImportError: