Commit Graph

5 Commits

Author SHA1 Message Date
Rebecca Chen
8ecf3ff0b6 Make the start argument to itertools.count optional. (#5332)
start should be optional: https://docs.python.org/3.8/library/itertools.html#itertools.count
Directly changing the second overload to mark start as optional
generated a mypy error about overlapping overloads, but adding a third
overload seems to work.

I also noticed that `_NStep` was defined as a TypeVar when I think it
makes more sense for it to be a Union, so I went ahead and changed that
as well.
2021-05-03 16:34:03 -07:00
Shantanu
1416e63ce2 itertools: add pairwise (#5285) 2021-05-01 20:25:45 -07:00
hatal175
f89cff3bf8 Fixing product and combinations (#5213) 2021-04-13 08:45:19 +02:00
hatal175
7adb0213f7 Convert itertools functions to classes (#5211) 2021-04-12 12:28:51 +02:00
Ivan Levkivskyi
16ae4c6120 Re-organize directory structure (#4971)
See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2021-01-27 12:00:39 +00:00