Commit a402c99
committed
[Fix] Fix NDArray single-arg subscript crash
NdarrayType.__class_getitem__ crashed when called with a single arg
(e.g. NdarrayType[dtype]) because it tried to unpack a non-tuple.
Wrap single args in a tuple before passing to __init__.1 parent 77fccda commit a402c99
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
0 commit comments