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": { 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__):