Alex Waygood
76a4bd796b
Simplify and correct many numeric unions ( #7906 )
...
Unblocks PyCQA/flake8-pyi#222
2022-05-21 15:25:00 +01:00
Alex Waygood
3930d8d12a
Make several type aliases private ( #7661 )
2022-04-18 22:19:16 +01:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Jelle Zijlstra
a24b765388
improve type for itertools.zip_longest ( #7655 )
2022-04-17 15:49:05 -07:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Alex Waygood
3ab250eec8
Use PEP 604 syntax wherever possible ( #7493 )
2022-03-16 16:01:33 +01:00
Alex Waygood
a8141e14ae
Add itertools.repeat.__length_hint__ method ( #7212 )
2022-02-14 14:13:13 -08:00
Alex Waygood
806c26045e
Improve itertools stubs ( #7109 )
...
There are quite a few `__iter__` methods in `itertools` that return `self` at runtime. They should do so in the stubs as well.
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2022-02-02 08:37:41 -08:00
Shantanu
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
Alex Waygood
a40d79a4e6
Use lowercase type everywhere ( #6853 )
2022-01-08 16:09:29 +01:00
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