[Request] [+ ] D11468: typing: suppress an import-error warning in `mercurial/utils/resourceutil.py`
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Tue Sep 21 15:38:32 UTC 2021
mharbison72 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Newly caught by pytype 2021-09-09.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11468
AFFECTED FILES
mercurial/utils/resourceutil.py
CHANGE DETAILS
diff --git a/mercurial/utils/resourceutil.py b/mercurial/utils/resourceutil.py
--- a/mercurial/utils/resourceutil.py
+++ b/mercurial/utils/resourceutil.py
@@ -57,7 +57,7 @@
try:
# importlib.resources exists from Python 3.7; see fallback in except clause
# further down
- from importlib import resources
+ from importlib import resources # pytype: disable=import-error
# Force loading of the resources module
resources.open_binary # pytype: disable=module-attr
To: mharbison72, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210921/ba101975/attachment.html>
More information about the Mercurial-patches
mailing list