Skip to content

Commit

Permalink
mypy: ignore pytato errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Nov 25, 2024
1 parent 6e7ea69 commit 1ec60bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions arraycontext/impl/pytato/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1ec60bf

Please sign in to comment.