Skip to content

Commit

Permalink
mypy: fix error from MultiVector typing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Nov 14, 2024
1 parent e6000a7 commit 0b186e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meshmode/mesh/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ def unpack_single(ary: np.ndarray | None) -> np.ndarray:

from pymbolic.geometric_algebra import MultiVector

mvs = [MultiVector(vec) for vec in spanning_object_array]
mvs: list[MultiVector[np.floating]] = (
[MultiVector(vec) for vec in spanning_object_array])

from operator import xor
outer_prod = -reduce(xor, mvs) # pylint: disable=invalid-unary-operand-type
Expand Down

0 comments on commit 0b186e7

Please sign in to comment.