Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
winestone
f3c7c48438
itertools: Improve precision of itertools.product types when called with 7 or more arguments ( #11163 )
2024-02-16 07:03:13 -08:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Alex Waygood
09668963a1
Make itertools.starmap covariant ( #11037 )
2023-11-29 11:10:26 +00:00
Serious-senpai
b1d5f2f8d5
Provide precise type hints for combinations_with_replacement ( #11068 )
2023-11-24 17:46:39 +00:00
Alex Waygood
4982061ab3
Make itertools.groupby covariant ( #11032 )
2023-11-17 12:33:14 +01:00
Serious-senpai
676446569d
Provide more precise type hints for itertools.permutations ( #11019 )
2023-11-11 14:23:11 +00:00
Alex Waygood
a08d4c8d2e
Remove many redundant inheritances from Generic[] ( #10933 )
2023-10-26 20:07:20 +02:00
Alex Waygood
2c3449694b
Run mypy and pyright on our py312 stubs in CI ( #10119 )
2023-04-30 15:31:08 +01:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
53747b264e
Stdlib: add 'obvious' default values ( #9688 )
2023-02-07 13:00:40 +01:00
Alex Waygood
1d7dda7fa1
stdlib: Add defaults for positional-only parameters ( #9655 )
2023-02-01 21:44:08 +00:00
James Hilton-Balfe
62170653ce
Add itertools.batched ( #9515 )
2023-01-12 22:07:26 +00:00
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