From 5fbaa4cf7aa880fc5a953fe5bf29e826023c5482 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 13 Sep 2022 15:24:22 -0500 Subject: [PATCH] Quote type subscripts to avoid py<=3.8 incompatibility (closes gh-382) --- pycuda/elementwise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycuda/elementwise.py b/pycuda/elementwise.py index 5486d097..9d66fe4c 100644 --- a/pycuda/elementwise.py +++ b/pycuda/elementwise.py @@ -463,7 +463,7 @@ def get_linear_combination_kernel(summand_descriptors, dtype_z): return func, tex_src -def _get_real_dtype(dtype: np.dtype[Any]) -> np.dtype[Any]: +def _get_real_dtype(dtype: "np.dtype[Any]") -> "np.dtype[Any]": assert dtype.kind == "c" return np.empty(0, dtype).real.dtype -- GitLab