Skip to content

Commit d9f7fa6

Browse files
committed
Add a changelog entry for the removal of __array__
1 parent 3259202 commit d9f7fa6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## 2.1.1 (2024-11-06)
44

5+
### Major Changes
6+
7+
- Remove the `__array__` method from array-api-strict arrays. This means they
8+
will no longer be implicitly converted to NumPy arrays when passed to `np`
9+
functions. This method was previously implemented as a convenience, but it
10+
isn't part of the array API standard. To portably convert an array API
11+
strict array to a NumPy array, use `np.from_dlpack(x)`
12+
513
### Minor Changes
614

715
- Use a more robust implementation of `clip()` that handles corner cases better.

0 commit comments

Comments
 (0)