changeset 48008:c0588d389c5f

typing: suppress an import-error warning in `mercurial/utils/resourceutil.py` Newly caught by pytype 2021-09-09. Differential Revision: https://phab.mercurial-scm.org/D11468
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 20 Sep 2021 10:44:25 -0400
parents 28c62f83b652
children 94d4a3f78e99
files mercurial/utils/resourceutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/utils/resourceutil.py	Mon Sep 20 10:42:38 2021 -0400
+++ b/mercurial/utils/resourceutil.py	Mon Sep 20 10:44:25 2021 -0400
@@ -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