From 3b58580b2a6fb9ec4524e4b5e038ffee2900c49e Mon Sep 17 00:00:00 2001 From: Shawn Lin Date: Fri, 11 Sep 2026 18:55:46 -0500 Subject: [PATCH 1/2] small fixes --- sumpy/p2p.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sumpy/p2p.py b/sumpy/p2p.py index b606737a..a533df48 100644 --- a/sumpy/p2p.py +++ b/sumpy/p2p.py @@ -754,6 +754,7 @@ def get_optimized_kernel(self, *, if strength_dtype == source_dtype: knl = lp.concatenate_arrays(knl, local_arrays, "local_isrc") local_arrays = ["local_isrc"] + local_array_isrc_axis = [1] local_array_sizes = [self.dim + self.strength_count] local_array_dtypes = [source_dtype] # We try to mark the local arrays (sources, strengths) @@ -811,8 +812,8 @@ def __call__(self, is_gpu = not is_cl_cpu(actx) if is_gpu: - source_dtype = kwargs["sources"][0].dtype - strength_dtype = kwargs["strength"].dtype + source_dtype = sources[0].dtype + strength_dtype = kwargs["strength"][0].dtype else: # these are unused for not GPU and defeats the caching # set them to None to keep the caching across dtypes From 2898b479a285fb774e04204f30e24fce24834c88 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sat, 12 Sep 2026 11:44:52 -0500 Subject: [PATCH 2/2] Update baseline --- .basedpyright/baseline.json | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index 7ec6898a..2b785508 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -8315,22 +8315,6 @@ "lineCount": 1 } }, - { - "code": "reportAny", - "range": { - "startColumn": 12, - "endColumn": 24, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 27, - "endColumn": 53, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -8343,7 +8327,7 @@ "code": "reportAny", "range": { "startColumn": 29, - "endColumn": 53, + "endColumn": 56, "lineCount": 1 } }