From f146f5d7fc8b8c8aabd9750f7ea6c625959cccb1 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Fri, 12 Jun 2026 16:38:48 +0300 Subject: [PATCH 1/2] feat: replace deprecated empty_like --- sumpy/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumpy/tools.py b/sumpy/tools.py index 755f13ad..7d2847cc 100644 --- a/sumpy/tools.py +++ b/sumpy/tools.py @@ -1062,7 +1062,7 @@ def run_opencl_fft( raise RuntimeError("inplace fft is not supported") else: # FIXME: All very imperative. FFT functionality should move into the actx? - output_vec = actx.np.empty_like(input_vec) # pyright: ignore[reportUnknownMemberType, reportAttributeAccessIssue] + output_vec = actx.np.zeros_like(input_vec) meth = app.ifft if inverse else app.fft From 00c1e6949985fff1ed58ad8ea302d16fc261167f Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Fri, 12 Jun 2026 16:41:41 +0300 Subject: [PATCH 2/2] chore: update baseline --- .basedpyright/baseline.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index 97c79771..b8384a04 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -24179,6 +24179,22 @@ "lineCount": 1 } }, + { + "code": "reportAny", + "range": { + "startColumn": 12, + "endColumn": 22, + "lineCount": 1 + } + }, + { + "code": "reportAny", + "range": { + "startColumn": 44, + "endColumn": 53, + "lineCount": 1 + } + }, { "code": "reportAny", "range": { @@ -24204,7 +24220,7 @@ } }, { - "code": "reportUnknownMemberType", + "code": "reportAny", "range": { "startColumn": 8, "endColumn": 28,