@@ -23,7 +23,7 @@ _Predicate: TypeAlias = Callable[[_T], object]
2323
2424# Technically count can take anything that implements a number protocol and has an add method
2525# but we can't enforce the add method
26- class count (Iterator [_N ], Generic [ _N ] ):
26+ class count (Iterator [_N ]):
2727 @overload
2828 def __new__ (cls ) -> count [int ]: ...
2929 @overload
@@ -33,12 +33,12 @@ class count(Iterator[_N], Generic[_N]):
3333 def __next__ (self ) -> _N : ...
3434 def __iter__ (self ) -> Self : ...
3535
36- class cycle (Iterator [_T ], Generic [ _T ] ):
36+ class cycle (Iterator [_T ]):
3737 def __init__ (self , __iterable : Iterable [_T ]) -> None : ...
3838 def __next__ (self ) -> _T : ...
3939 def __iter__ (self ) -> Self : ...
4040
41- class repeat (Iterator [_T ], Generic [ _T ] ):
41+ class repeat (Iterator [_T ]):
4242 @overload
4343 def __init__ (self , object : _T ) -> None : ...
4444 @overload
@@ -47,7 +47,7 @@ class repeat(Iterator[_T], Generic[_T]):
4747 def __iter__ (self ) -> Self : ...
4848 def __length_hint__ (self ) -> int : ...
4949
50- class accumulate (Iterator [_T ], Generic [ _T ] ):
50+ class accumulate (Iterator [_T ]):
5151 if sys .version_info >= (3 , 8 ):
5252 @overload
5353 def __init__ (self , iterable : Iterable [_T ], func : None = None , * , initial : _T | None = ...) -> None : ...
@@ -59,7 +59,7 @@ class accumulate(Iterator[_T], Generic[_T]):
5959 def __iter__ (self ) -> Self : ...
6060 def __next__ (self ) -> _T : ...
6161
62- class chain (Iterator [_T ], Generic [ _T ] ):
62+ class chain (Iterator [_T ]):
6363 def __init__ (self , * iterables : Iterable [_T ]) -> None : ...
6464 def __next__ (self ) -> _T : ...
6565 def __iter__ (self ) -> Self : ...
@@ -69,17 +69,17 @@ class chain(Iterator[_T], Generic[_T]):
6969 if sys .version_info >= (3 , 9 ):
7070 def __class_getitem__ (cls , __item : Any ) -> GenericAlias : ...
7171
72- class compress (Iterator [_T ], Generic [ _T ] ):
72+ class compress (Iterator [_T ]):
7373 def __init__ (self , data : Iterable [_T ], selectors : Iterable [Any ]) -> None : ...
7474 def __iter__ (self ) -> Self : ...
7575 def __next__ (self ) -> _T : ...
7676
77- class dropwhile (Iterator [_T ], Generic [ _T ] ):
77+ class dropwhile (Iterator [_T ]):
7878 def __init__ (self , __predicate : _Predicate [_T ], __iterable : Iterable [_T ]) -> None : ...
7979 def __iter__ (self ) -> Self : ...
8080 def __next__ (self ) -> _T : ...
8181
82- class filterfalse (Iterator [_T ], Generic [ _T ] ):
82+ class filterfalse (Iterator [_T ]):
8383 def __init__ (self , __predicate : _Predicate [_T ] | None , __iterable : Iterable [_T ]) -> None : ...
8484 def __iter__ (self ) -> Self : ...
8585 def __next__ (self ) -> _T : ...
@@ -92,27 +92,27 @@ class groupby(Iterator[tuple[_T, Iterator[_S]]], Generic[_T, _S]):
9292 def __iter__ (self ) -> Self : ...
9393 def __next__ (self ) -> tuple [_T , Iterator [_S ]]: ...
9494
95- class islice (Iterator [_T ], Generic [ _T ] ):
95+ class islice (Iterator [_T ]):
9696 @overload
9797 def __init__ (self , __iterable : Iterable [_T ], __stop : int | None ) -> None : ...
9898 @overload
9999 def __init__ (self , __iterable : Iterable [_T ], __start : int | None , __stop : int | None , __step : int | None = ...) -> None : ...
100100 def __iter__ (self ) -> Self : ...
101101 def __next__ (self ) -> _T : ...
102102
103- class starmap (Iterator [_T ], Generic [ _T ] ):
103+ class starmap (Iterator [_T ]):
104104 def __init__ (self , __function : Callable [..., _T ], __iterable : Iterable [Iterable [Any ]]) -> None : ...
105105 def __iter__ (self ) -> Self : ...
106106 def __next__ (self ) -> _T : ...
107107
108- class takewhile (Iterator [_T ], Generic [ _T ] ):
108+ class takewhile (Iterator [_T ]):
109109 def __init__ (self , __predicate : _Predicate [_T ], __iterable : Iterable [_T ]) -> None : ...
110110 def __iter__ (self ) -> Self : ...
111111 def __next__ (self ) -> _T : ...
112112
113113def tee (__iterable : Iterable [_T ], __n : int = 2 ) -> tuple [Iterator [_T ], ...]: ...
114114
115- class zip_longest (Iterator [_T_co ], Generic [ _T_co ] ):
115+ class zip_longest (Iterator [_T_co ]):
116116 # one iterable (fillvalue doesn't matter)
117117 @overload
118118 def __new__ (cls , __iter1 : Iterable [_T1 ], * , fillvalue : object = ...) -> zip_longest [tuple [_T1 ]]: ...
@@ -192,7 +192,7 @@ class zip_longest(Iterator[_T_co], Generic[_T_co]):
192192 def __iter__ (self ) -> Self : ...
193193 def __next__ (self ) -> _T_co : ...
194194
195- class product (Iterator [_T_co ], Generic [ _T_co ] ):
195+ class product (Iterator [_T_co ]):
196196 @overload
197197 def __new__ (cls , __iter1 : Iterable [_T1 ]) -> product [tuple [_T1 ]]: ...
198198 @overload
@@ -246,7 +246,7 @@ class permutations(Iterator[tuple[_T, ...]], Generic[_T]):
246246 def __iter__ (self ) -> Self : ...
247247 def __next__ (self ) -> tuple [_T , ...]: ...
248248
249- class combinations (Iterator [_T_co ], Generic [ _T_co ] ):
249+ class combinations (Iterator [_T_co ]):
250250 @overload
251251 def __new__ (cls , iterable : Iterable [_T ], r : Literal [2 ]) -> combinations [tuple [_T , _T ]]: ...
252252 @overload
@@ -266,7 +266,7 @@ class combinations_with_replacement(Iterator[tuple[_T, ...]], Generic[_T]):
266266 def __next__ (self ) -> tuple [_T , ...]: ...
267267
268268if sys .version_info >= (3 , 10 ):
269- class pairwise (Iterator [_T_co ], Generic [ _T_co ] ):
269+ class pairwise (Iterator [_T_co ]):
270270 def __new__ (cls , __iterable : Iterable [_T ]) -> pairwise [tuple [_T , _T ]]: ...
271271 def __iter__ (self ) -> Self : ...
272272 def __next__ (self ) -> _T_co : ...
0 commit comments