Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dataclass_array/utils/np_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def asarray(

# Handle ndarray
dtype = enp.dtypes.DType.from_value(dtype) # pyrefly: ignore[bad-assignment]
return dtype.asarray(x, xnp=xnp, casting='all' if cast_dtype else 'none')
return dtype.asarray(x, xnp=xnp, casting='all' if cast_dtype else 'none') # pyrefly: ignore[missing-attribute]


def _assert_valid_xnp_cast(from_: enp.NpModule, to: enp.NpModule) -> None:
Expand Down
Loading