(cls, *args, **kwargs)
| 86 | |
| 87 | # Prevent Array() from working |
| 88 | def __new__(cls, *args, **kwargs): |
| 89 | raise TypeError( |
| 90 | "The array_api Array object should not be instantiated directly. Use an array creation function, such as asarray(), instead." |
| 91 | ) |
| 92 | |
| 93 | # These functions are not required by the spec, but are implemented for |
| 94 | # the sake of usability. |