You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
1
# Changelog
2
+
- v0.28.0
3
+
- Fix mismatched behavior between `PyArrayLike1` and `PyArrayLike2` when used with floats ([#520](https://github.com/PyO3/rust-numpy/pull/520))
4
+
2
5
- v0.27.1
3
6
- Bump ndarray dependency to v0.17. ([#516](https://github.com/PyO3/rust-numpy/pull/516))
/// Marker type to indicate that the element type received via [`PyArrayLike`] can be cast to the specified type by NumPy's [`asarray`](https://numpy.org/doc/stable/reference/generated/numpy.asarray.html).
@@ -39,7 +39,7 @@ pub struct AllowTypeChange;
39
39
implSealedforAllowTypeChange{}
40
40
41
41
implCoerceforAllowTypeChange{
42
-
constVAL:bool = true;
42
+
constALLOW_TYPE_CHANGE:bool = true;
43
43
}
44
44
45
45
/// Receiver for arrays or array-like types.
@@ -151,7 +151,11 @@ where
151
151
152
152
let py = ob.py();
153
153
154
-
ifmatches!(D::NDIM,None | Some(1)){
154
+
// If the input is already an ndarray and `TypeMustMatch` is used then no type conversion
0 commit comments