@@ -78,7 +78,7 @@ def __init__(self, device: cl.Device) -> None:
7878 @override
7979 def is_available (cls ) -> bool :
8080 try :
81- import pyopencl # noqa: F401 # pyright: ignore[reportUnusedImport]
81+ import pyopencl # ruff:ignore[unused-import] # pyright: ignore[reportUnusedImport]
8282 except ImportError :
8383 return False
8484 else :
@@ -154,8 +154,8 @@ class _PytestPytatoPyOpenCLArrayContextFactory(PytestPyOpenCLArrayContextFactory
154154 @override
155155 def is_available (cls ) -> bool :
156156 try :
157- import pyopencl # noqa: F401 # pyright: ignore[reportUnusedImport]
158- import pytato # noqa: F401 # pyright: ignore[reportUnusedImport]
157+ import pyopencl # ruff:ignore[unused-import] # pyright: ignore[reportUnusedImport]
158+ import pytato # ruff:ignore[unused-import] # pyright: ignore[reportUnusedImport]
159159 except ImportError :
160160 return False
161161 else :
@@ -204,7 +204,7 @@ def __init__(self, *args, **kwargs) -> None:
204204 @override
205205 def is_available (cls ) -> bool :
206206 try :
207- import jax # noqa: F401 # pyright: ignore[reportUnusedImport]
207+ import jax # ruff:ignore[unused-import] # pyright: ignore[reportUnusedImport]
208208 except ImportError :
209209 return False
210210 else :
@@ -232,8 +232,8 @@ def __init__(self, *args, **kwargs) -> None:
232232 @override
233233 def is_available (cls ) -> bool :
234234 try :
235- import jax # noqa: F401 # pyright: ignore[reportUnusedImport]
236- import pytato # noqa: F401 # pyright: ignore[reportUnusedImport]
235+ import jax # ruff:ignore[unused-import] # pyright: ignore[reportUnusedImport]
236+ import pytato # ruff:ignore[unused-import] # pyright: ignore[reportUnusedImport]
237237 except ImportError :
238238 return False
239239 else :
0 commit comments