Skip to content

Commit

Permalink
fix 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Nov 21, 2024
1 parent 72ff7f4 commit 7eca75b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/useq/_mda_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ def _cast_data(cls, v: Any) -> Any:
v = {"data": v}
return v

def __array__(
self, dtype: "npt.DTypeLike | None" = None, copy: "bool | None" = None
) -> npt.NDArray:
def __array__(self, *args: Any, **kwargs: Any) -> npt.NDArray:
"""Cast the image data to a numpy array."""
return np.asarray(self.data, dtype=dtype, copy=copy)
return np.asarray(self.data, *args, **kwargs)


class PropertyTuple(NamedTuple):
Expand Down

0 comments on commit 7eca75b

Please sign in to comment.