From 1ec60bf6911a2182b5dfef505373c4fd2b79f700 Mon Sep 17 00:00:00 2001
From: Alexandru Fikl <alexfikl@gmail.com>
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 5b05999..2d624d9 100644
--- a/arraycontext/impl/pytato/utils.py
+++ b/arraycontext/impl/pytato/utils.py
@@ -160,7 +160,10 @@ class TransferFromNumpyMapper(CopyMapper):
 
         # 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 @@ class TransferToNumpyMapper(CopyMapper):
 
         # 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,
-- 
GitLab