Commit Graph

9 Commits

Author SHA1 Message Date
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Alex Waygood
8431e6c7c3 Add missing __class_getitem__ method to itertools.chain (#6389) 2021-11-26 21:50:49 +02:00
Akuli
994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
Akuli
ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
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