From 319778c23d180b731ebddc4c546b8d1325b2c218 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Sun, 26 Jun 2022 09:16:56 -0500 Subject: [PATCH] BuiltList.lists: provide a default --- pyopencl/algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/algorithm.py b/pyopencl/algorithm.py index 0294c2e2..a1165340 100644 --- a/pyopencl/algorithm.py +++ b/pyopencl/algorithm.py @@ -728,7 +728,7 @@ def _get_arg_list(arg_list, prefix=""): class BuiltList: count: Optional[int] starts: Optional[pyopencl.array.Array] - lists: Optional[pyopencl.array.Array] + lists: Optional[pyopencl.array.Array] = None num_nonempty_lists: Optional[int] = None nonempty_indices: Optional[pyopencl.array.Array] = None compressed_indices: Optional[pyopencl.array.Array] = None -- GitLab