diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index af23e1b1..d3c01c3d 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -275,7 +275,7 @@ def _find_pyopencl_include_path() -> str: # NOTE: only available in Python >=3.9 from importlib.resources import files except ImportError: - from importlib_resources import files + from importlib_resources import files # type: ignore[no-redef] include_path = str(files("pyopencl") / "cl") if not exists(include_path):