From 994b7c85ee7bd7dd8eceab9815a5899fb2efafe8 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 24 Nov 2024 10:00:22 +0100 Subject: [PATCH] mypy: ignore pytato errors --- arraycontext/impl/pytato/utils.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arraycontext/impl/pytato/utils.py b/arraycontext/impl/pytato/utils.py index 5b059992..2d624d9a 100644 --- a/arraycontext/impl/pytato/utils.py +++ b/arraycontext/impl/pytato/utils.py @@ -160,7 +160,10 @@ def map_data_wrapper(self, expr: DataWrapper) -> Array: # https://github.com/pylint-dev/pylint/issues/3893 # pylint: disable=unexpected-keyword-arg - return DataWrapper( + # type-ignore: discussed at + # https://github.com/inducer/arraycontext/pull/289#discussion_r1855523967 + # possibly related: https://github.com/python/mypy/issues/17375 + return DataWrapper( # type: ignore[call-arg] data=new_dw.data, shape=expr.shape, axes=expr.axes, @@ -190,7 +193,10 @@ def map_data_wrapper(self, expr: DataWrapper) -> Array: # https://github.com/pylint-dev/pylint/issues/3893 # pylint: disable=unexpected-keyword-arg - return DataWrapper( + # type-ignore: discussed at + # https://github.com/inducer/arraycontext/pull/289#discussion_r1855523967 + # possibly related: https://github.com/python/mypy/issues/17375 + return DataWrapper( # type: ignore[call-arg] data=np_data, shape=expr.shape, axes=expr.axes,