From 0eddb68690f31e5ac74397df90d1103af07cc75a Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 18 Oct 2026 10:35:59 +0300 Subject: [PATCH 1/2] fix: remove unnecessary cast with numpy 2.5.4 --- arraycontext/impl/pytato/outline.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arraycontext/impl/pytato/outline.py b/arraycontext/impl/pytato/outline.py index a2d627f1..ea0268b6 100644 --- a/arraycontext/impl/pytato/outline.py +++ b/arraycontext/impl/pytato/outline.py @@ -49,7 +49,6 @@ if TYPE_CHECKING: from collections.abc import Callable, Mapping - from pymbolic import Scalar from pytools.tag import Tag from arraycontext.impl.pytato import _BasePytatoArrayContext @@ -152,7 +151,7 @@ def get_placeholder_replacement( if arg is None: return None elif np.isscalar(arg): - return cast("Scalar", arg) + return arg elif isinstance(arg, pt.Array): return arg_id_to_placeholder[key] elif is_array_container_type(arg.__class__): From 43c58947264e4063566873498a9545d2ccaf61dc Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 18 Oct 2026 10:36:03 +0300 Subject: [PATCH 2/2] chore: update baseline --- .basedpyright/baseline.json | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index e7f15d70..3bb025f7 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -11651,14 +11651,6 @@ "lineCount": 1 } }, - { - "code": "reportUnusedClass", - "range": { - "startColumn": 10, - "endColumn": 41, - "lineCount": 1 - } - }, { "code": "reportInvalidCast", "range": {