Commit bc60e96
committed
Set shape on exported memoryviews
Previously we would update the exposed `len` but not the `shape`. This went unnoticed since many consuming APIs only check `len` and not `shape`. This fixes the bug and adds some tests to ensure both fields are properly set.1 parent dd965dc commit bc60e96
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15051 | 15051 | | |
15052 | 15052 | | |
15053 | 15053 | | |
| 15054 | + | |
15054 | 15055 | | |
15055 | 15056 | | |
15056 | 15057 | | |
| |||
15910 | 15911 | | |
15911 | 15912 | | |
15912 | 15913 | | |
| 15914 | + | |
15913 | 15915 | | |
15914 | 15916 | | |
15915 | 15917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| 686 | + | |
686 | 687 | | |
687 | 688 | | |
688 | 689 | | |
| |||
1301 | 1302 | | |
1302 | 1303 | | |
1303 | 1304 | | |
| 1305 | + | |
1304 | 1306 | | |
1305 | 1307 | | |
1306 | 1308 | | |
| |||
0 commit comments