@@ -126,31 +126,26 @@ class zip_longest(Iterator[_T_co]):
126
126
# three iterables
127
127
@overload
128
128
def __new__ (
129
- cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ],
130
- / ) -> zip_longest [tuple [_T1 | Any , _T2 | Any , _T3 | Any ]]: ...
129
+ cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], /
130
+ ) -> zip_longest [tuple [_T1 | Any , _T2 | Any , _T3 | Any ]]: ...
131
131
@overload
132
132
def __new__ (
133
133
cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], / , * , fillvalue : _T
134
134
) -> zip_longest [tuple [_T1 | _T , _T2 | _T , _T3 | _T ]]: ...
135
135
# four iterables
136
136
@overload
137
137
def __new__ (
138
- cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], iter4 : Iterable [_T4 ],
139
- / ) -> zip_longest [tuple [_T1 | Any , _T2 | Any , _T3 | Any , _T4 | Any ]]: ...
138
+ cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], iter4 : Iterable [_T4 ], /
139
+ ) -> zip_longest [tuple [_T1 | Any , _T2 | Any , _T3 | Any , _T4 | Any ]]: ...
140
140
@overload
141
141
def __new__ (
142
142
cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], iter4 : Iterable [_T4 ], / , * , fillvalue : _T
143
143
) -> zip_longest [tuple [_T1 | _T , _T2 | _T , _T3 | _T , _T4 | _T ]]: ...
144
144
# five iterables
145
145
@overload
146
146
def __new__ (
147
- cls ,
148
- iter1 : Iterable [_T1 ],
149
- iter2 : Iterable [_T2 ],
150
- iter3 : Iterable [_T3 ],
151
- iter4 : Iterable [_T4 ],
152
- iter5 : Iterable [_T5 ],
153
- / ) -> zip_longest [tuple [_T1 | Any , _T2 | Any , _T3 | Any , _T4 | Any , _T5 | Any ]]: ...
147
+ cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], iter4 : Iterable [_T4 ], iter5 : Iterable [_T5 ], /
148
+ ) -> zip_longest [tuple [_T1 | Any , _T2 | Any , _T3 | Any , _T4 | Any , _T5 | Any ]]: ...
154
149
@overload
155
150
def __new__ (
156
151
cls ,
@@ -159,7 +154,8 @@ class zip_longest(Iterator[_T_co]):
159
154
iter3 : Iterable [_T3 ],
160
155
iter4 : Iterable [_T4 ],
161
156
iter5 : Iterable [_T5 ],
162
- / , * ,
157
+ / ,
158
+ * ,
163
159
fillvalue : _T ,
164
160
) -> zip_longest [tuple [_T1 | _T , _T2 | _T , _T3 | _T , _T4 | _T , _T5 | _T ]]: ...
165
161
# six or more iterables
@@ -172,7 +168,8 @@ class zip_longest(Iterator[_T_co]):
172
168
iter4 : Iterable [_T ],
173
169
iter5 : Iterable [_T ],
174
170
iter6 : Iterable [_T ],
175
- / , * iterables : Iterable [_T ],
171
+ / ,
172
+ * iterables : Iterable [_T ],
176
173
) -> zip_longest [tuple [_T | Any , ...]]: ...
177
174
@overload
178
175
def __new__ (
@@ -183,7 +180,8 @@ class zip_longest(Iterator[_T_co]):
183
180
iter4 : Iterable [_T ],
184
181
iter5 : Iterable [_T ],
185
182
iter6 : Iterable [_T ],
186
- / , * iterables : Iterable [_T ],
183
+ / ,
184
+ * iterables : Iterable [_T ],
187
185
fillvalue : _T ,
188
186
) -> zip_longest [tuple [_T , ...]]: ...
189
187
def __iter__ (self ) -> Self : ...
@@ -198,17 +196,12 @@ class product(Iterator[_T_co]):
198
196
def __new__ (cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], / ) -> product [tuple [_T1 , _T2 , _T3 ]]: ...
199
197
@overload
200
198
def __new__ (
201
- cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], iter4 : Iterable [_T4 ],
202
- / ) -> product [tuple [_T1 , _T2 , _T3 , _T4 ]]: ...
199
+ cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], iter4 : Iterable [_T4 ], /
200
+ ) -> product [tuple [_T1 , _T2 , _T3 , _T4 ]]: ...
203
201
@overload
204
202
def __new__ (
205
- cls ,
206
- iter1 : Iterable [_T1 ],
207
- iter2 : Iterable [_T2 ],
208
- iter3 : Iterable [_T3 ],
209
- iter4 : Iterable [_T4 ],
210
- iter5 : Iterable [_T5 ],
211
- / ) -> product [tuple [_T1 , _T2 , _T3 , _T4 , _T5 ]]: ...
203
+ cls , iter1 : Iterable [_T1 ], iter2 : Iterable [_T2 ], iter3 : Iterable [_T3 ], iter4 : Iterable [_T4 ], iter5 : Iterable [_T5 ], /
204
+ ) -> product [tuple [_T1 , _T2 , _T3 , _T4 , _T5 ]]: ...
212
205
@overload
213
206
def __new__ (
214
207
cls ,
@@ -218,7 +211,8 @@ class product(Iterator[_T_co]):
218
211
iter4 : Iterable [_T4 ],
219
212
iter5 : Iterable [_T5 ],
220
213
iter6 : Iterable [_T6 ],
221
- / ) -> product [tuple [_T1 , _T2 , _T3 , _T4 , _T5 , _T6 ]]: ...
214
+ / ,
215
+ ) -> product [tuple [_T1 , _T2 , _T3 , _T4 , _T5 , _T6 ]]: ...
222
216
@overload
223
217
def __new__ (
224
218
cls ,
@@ -229,7 +223,8 @@ class product(Iterator[_T_co]):
229
223
iter5 : Iterable [Any ],
230
224
iter6 : Iterable [Any ],
231
225
iter7 : Iterable [Any ],
232
- / , * iterables : Iterable [Any ],
226
+ / ,
227
+ * iterables : Iterable [Any ],
233
228
) -> product [tuple [Any , ...]]: ...
234
229
@overload
235
230
def __new__ (cls , * iterables : Iterable [_T1 ], repeat : int ) -> product [tuple [_T1 , ...]]: ...
0 commit comments