|
6 | 6 |
|
7 | 7 | See
|
8 | 8 | https://github.com/data-apis/array-api/blob/master/spec/API_specification/array_object.md
|
9 |
| -
|
10 |
| -Note, all non-keyword-only arguments are positional-only. We don't include that |
11 |
| -here because |
12 |
| -
|
13 |
| -1. The /, syntax for positional-only arguments is Python 3.8+ only, and |
14 |
| -2. There is no real way to test that anyway. |
15 | 9 | """
|
16 | 10 |
|
17 | 11 | from __future__ import annotations
|
18 | 12 |
|
19 | 13 | from ._types import array
|
20 | 14 |
|
21 |
| -def __abs__(x: array) -> array: |
| 15 | +def __abs__(x: array, /) -> array: |
22 | 16 | """
|
23 | 17 | Note: __abs__ is a method of the array object.
|
24 | 18 | """
|
25 | 19 | pass
|
26 | 20 |
|
27 |
| -def __add__(x1: array, x2: array) -> array: |
| 21 | +def __add__(x1: array, x2: array, /) -> array: |
28 | 22 | """
|
29 | 23 | Note: __add__ is a method of the array object.
|
30 | 24 | """
|
31 | 25 | pass
|
32 | 26 |
|
33 |
| -def __and__(x1: array, x2: array) -> array: |
| 27 | +def __and__(x1: array, x2: array, /) -> array: |
34 | 28 | """
|
35 | 29 | Note: __and__ is a method of the array object.
|
36 | 30 | """
|
37 | 31 | pass
|
38 | 32 |
|
39 |
| -def __eq__(x1: array, x2: array) -> array: |
| 33 | +def __eq__(x1: array, x2: array, /) -> array: |
40 | 34 | """
|
41 | 35 | Note: __eq__ is a method of the array object.
|
42 | 36 | """
|
43 | 37 | pass
|
44 | 38 |
|
45 |
| -def __floordiv__(x1: array, x2: array) -> array: |
| 39 | +def __floordiv__(x1: array, x2: array, /) -> array: |
46 | 40 | """
|
47 | 41 | Note: __floordiv__ is a method of the array object.
|
48 | 42 | """
|
49 | 43 | pass
|
50 | 44 |
|
51 |
| -def __ge__(x1: array, x2: array) -> array: |
| 45 | +def __ge__(x1: array, x2: array, /) -> array: |
52 | 46 | """
|
53 | 47 | Note: __ge__ is a method of the array object.
|
54 | 48 | """
|
55 | 49 | pass
|
56 | 50 |
|
57 |
| -def __getitem__(x, key): |
| 51 | +def __getitem__(x, key, /): |
58 | 52 | """
|
59 | 53 | Note: __getitem__ is a method of the array object.
|
60 | 54 | """
|
61 | 55 | pass
|
62 | 56 |
|
63 |
| -def __gt__(x1: array, x2: array) -> array: |
| 57 | +def __gt__(x1: array, x2: array, /) -> array: |
64 | 58 | """
|
65 | 59 | Note: __gt__ is a method of the array object.
|
66 | 60 | """
|
67 | 61 | pass
|
68 | 62 |
|
69 |
| -def __invert__(x: array) -> array: |
| 63 | +def __invert__(x: array, /) -> array: |
70 | 64 | """
|
71 | 65 | Note: __invert__ is a method of the array object.
|
72 | 66 | """
|
73 | 67 | pass
|
74 | 68 |
|
75 |
| -def __le__(x1: array, x2: array) -> array: |
| 69 | +def __le__(x1: array, x2: array, /) -> array: |
76 | 70 | """
|
77 | 71 | Note: __le__ is a method of the array object.
|
78 | 72 | """
|
79 | 73 | pass
|
80 | 74 |
|
81 |
| -def __len__(x): |
| 75 | +def __len__(x, /): |
82 | 76 | """
|
83 | 77 | Note: __len__ is a method of the array object.
|
84 | 78 | """
|
85 | 79 | pass
|
86 | 80 |
|
87 |
| -def __lshift__(x1: array, x2: array) -> array: |
| 81 | +def __lshift__(x1: array, x2: array, /) -> array: |
88 | 82 | """
|
89 | 83 | Note: __lshift__ is a method of the array object.
|
90 | 84 | """
|
91 | 85 | pass
|
92 | 86 |
|
93 |
| -def __lt__(x1: array, x2: array) -> array: |
| 87 | +def __lt__(x1: array, x2: array, /) -> array: |
94 | 88 | """
|
95 | 89 | Note: __lt__ is a method of the array object.
|
96 | 90 | """
|
97 | 91 | pass
|
98 | 92 |
|
99 |
| -def __matmul__(x1: array, x2: array) -> array: |
| 93 | +def __matmul__(x1: array, x2: array, /) -> array: |
100 | 94 | """
|
101 | 95 | Note: __matmul__ is a method of the array object.
|
102 | 96 | """
|
103 | 97 | pass
|
104 | 98 |
|
105 |
| -def __mod__(x1: array, x2: array) -> array: |
| 99 | +def __mod__(x1: array, x2: array, /) -> array: |
106 | 100 | """
|
107 | 101 | Note: __mod__ is a method of the array object.
|
108 | 102 | """
|
109 | 103 | pass
|
110 | 104 |
|
111 |
| -def __mul__(x1: array, x2: array) -> array: |
| 105 | +def __mul__(x1: array, x2: array, /) -> array: |
112 | 106 | """
|
113 | 107 | Note: __mul__ is a method of the array object.
|
114 | 108 | """
|
115 | 109 | pass
|
116 | 110 |
|
117 |
| -def __ne__(x1: array, x2: array) -> array: |
| 111 | +def __ne__(x1: array, x2: array, /) -> array: |
118 | 112 | """
|
119 | 113 | Note: __ne__ is a method of the array object.
|
120 | 114 | """
|
121 | 115 | pass
|
122 | 116 |
|
123 |
| -def __neg__(x: array) -> array: |
| 117 | +def __neg__(x: array, /) -> array: |
124 | 118 | """
|
125 | 119 | Note: __neg__ is a method of the array object.
|
126 | 120 | """
|
127 | 121 | pass
|
128 | 122 |
|
129 |
| -def __or__(x1: array, x2: array) -> array: |
| 123 | +def __or__(x1: array, x2: array, /) -> array: |
130 | 124 | """
|
131 | 125 | Note: __or__ is a method of the array object.
|
132 | 126 | """
|
133 | 127 | pass
|
134 | 128 |
|
135 |
| -def __pos__(x: array) -> array: |
| 129 | +def __pos__(x: array, /) -> array: |
136 | 130 | """
|
137 | 131 | Note: __pos__ is a method of the array object.
|
138 | 132 | """
|
139 | 133 | pass
|
140 | 134 |
|
141 |
| -def __pow__(x1: array, x2: array) -> array: |
| 135 | +def __pow__(x1: array, x2: array, /) -> array: |
142 | 136 | """
|
143 | 137 | Note: __pow__ is a method of the array object.
|
144 | 138 | """
|
145 | 139 | pass
|
146 | 140 |
|
147 |
| -def __rshift__(x1: array, x2: array) -> array: |
| 141 | +def __rshift__(x1: array, x2: array, /) -> array: |
148 | 142 | """
|
149 | 143 | Note: __rshift__ is a method of the array object.
|
150 | 144 | """
|
151 | 145 | pass
|
152 | 146 |
|
153 |
| -def __setitem__(x, key, value): |
| 147 | +def __setitem__(x, key, value, /): |
154 | 148 | """
|
155 | 149 | Note: __setitem__ is a method of the array object.
|
156 | 150 | """
|
157 | 151 | pass
|
158 | 152 |
|
159 |
| -def __sub__(x1: array, x2: array) -> array: |
| 153 | +def __sub__(x1: array, x2: array, /) -> array: |
160 | 154 | """
|
161 | 155 | Note: __sub__ is a method of the array object.
|
162 | 156 | """
|
163 | 157 | pass
|
164 | 158 |
|
165 |
| -def __truediv__(x1: array, x2: array) -> array: |
| 159 | +def __truediv__(x1: array, x2: array, /) -> array: |
166 | 160 | """
|
167 | 161 | Note: __truediv__ is a method of the array object.
|
168 | 162 | """
|
169 | 163 | pass
|
170 | 164 |
|
171 |
| -def __xor__(x1: array, x2: array) -> array: |
| 165 | +def __xor__(x1: array, x2: array, /) -> array: |
172 | 166 | """
|
173 | 167 | Note: __xor__ is a method of the array object.
|
174 | 168 | """
|
|
0 commit comments