From fb45e9fa303d60267bd34f5117aeec0952224844 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Fri, 13 Feb 2026 14:47:41 +0200 Subject: [PATCH 1/2] fix: unreliable floating point equality (RUF069) --- test/test_arraycontext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_arraycontext.py b/test/test_arraycontext.py index 6d7a38a4..64164695 100644 --- a/test/test_arraycontext.py +++ b/test/test_arraycontext.py @@ -311,12 +311,12 @@ def test_array_context_np_like( if sym_name == "zeros_like": if np.isscalar(result): - assert result == 0.0 + assert result == 0.0 # noqa: RUF069 else: assert actx.to_numpy(actx.np.all(actx.np.equal(result, 0.0))) elif sym_name == "ones_like": if np.isscalar(result): - assert result == 1.0 + assert result == 1.0 # noqa: RUF069 else: assert actx.to_numpy(actx.np.all(actx.np.equal(result, 1.0))) else: From 0136b8fd0e76948fc63b2bd86fdf352272f89c58 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Fri, 13 Feb 2026 15:20:23 +0200 Subject: [PATCH 2/2] chore: update baseline --- .basedpyright/baseline.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index c01febbe..b115d416 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -9106,6 +9106,32 @@ } } ], + "./arraycontext/impl/pytato/outline.py": [ + { + "code": "reportReturnType", + "range": { + "startColumn": 11, + "endColumn": 39, + "lineCount": 1 + } + }, + { + "code": "reportUnknownVariableType", + "range": { + "startColumn": 15, + "endColumn": 45, + "lineCount": 1 + } + }, + { + "code": "reportUnknownArgumentType", + "range": { + "startColumn": 29, + "endColumn": 44, + "lineCount": 1 + } + } + ], "./arraycontext/loopy.py": [ { "code": "reportUnknownMemberType",