Skip to content

Commit

Permalink
mypy: update for newest numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Dec 29, 2024
1 parent 7800864 commit c71e8b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions grudge/geometry/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ def inverse_metric_derivative_mat(
result = np.zeros((ambient_dim, dim), dtype=object)
for i in range(dim):
for j in range(ambient_dim):
# type-ignore because numpy typing doesn't like object arrays
result[i, j] = inverse_metric_derivative( # type: ignore[call-overload]
result[i, j] = inverse_metric_derivative(
actx, dcoll, i, j, dd=dd,
_use_geoderiv_connection=_use_geoderiv_connection
)
Expand Down

0 comments on commit c71e8b6

Please sign in to comment.