Commit Graph

11 Commits

Author SHA1 Message Date
Rogdham
db821101b8 bisect: don't require Sequences (#9813) 2023-02-25 09:24:31 -08:00
Alex Waygood
c9f17d80fa _bisect: Remove incorrect = ...s for several overloads (#9609) 2023-01-29 10:06:39 -08:00
Alex Waygood
33a62ae42d Add more defaults to the stdlib (#9606)
Continuing work towards #8988.

The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:

- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Alex Waygood
97a74bc1aa Import from collections.abc wherever possible (#7635) 2022-04-18 12:50:37 +02:00
Ilya Kulakov
d014533f36 bisect: elements of a are bounded by SupportsRichComparison (#7111) 2022-02-11 17:12:00 -08:00
Ilya Kulakov
f2ce1d1d21 bisect: insort_* expects x to match type of elements of a (#7102) 2022-02-02 12:21:11 +01:00
Ilya Kulakov
587d15a9bc bisect: fix type of x when key is present (#7097) 2022-01-31 17:49:58 -08:00
Alex Waygood
5670ca2f75 Add SupportsRichComparison type to _typeshed (#6583)
Use it to improve types of `max()` and other functions.

Also make some other tweaks to types related to comparison dunders.

Fixes #6575
2021-12-14 14:12:23 +00:00
Akuli
ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
Shantanu
2d69d1a695 bisect: update for py310 (#5282) 2021-05-01 20:58:30 -07: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