Commit c091f26
authored
BUG: Fix
This PR fixes a bug in the __array__ method where calling __array__(None) would return an array with the default dtype float64, regardless of the original array's dtype. __array__(None) to preserve dtype (numpy#28806)1 parent 91db7fb commit c091f26
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
931 | | - | |
| 931 | + | |
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10459 | 10459 | | |
10460 | 10460 | | |
10461 | 10461 | | |
| 10462 | + | |
| 10463 | + | |
| 10464 | + | |
| 10465 | + | |
| 10466 | + | |
| 10467 | + | |
| 10468 | + | |
| 10469 | + | |
| 10470 | + | |
| 10471 | + | |
0 commit comments