Jukka Lehtosalo
78806f5402
Use AbstractSet instead of set in random and inspect ( #6574 )
2021-12-13 17:26:28 +01:00
Jelle Zijlstra
943dc5f61d
More permissive type for random.choice and related functions ( #6562 )
2021-12-10 19:50:02 +01:00
Shantanu
2a1ef3735d
random: add VERSION, SystemRandom.getrandbits is not pos only ( #6419 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-05 16:52:34 +02:00
Alex Waygood
5c8e68f0eb
Use lowercase set, frozenset and deque where possible ( #6346 )
2021-11-19 15:05:45 -08:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
jack1142
0209b6f95f
random.choices: weights can be Fractions ( #5587 )
2021-06-06 21:39:31 -07:00
hatal175
fbf21995e3
Various stubtest fixes ( #5230 )
2021-04-18 09:30:00 -07:00
Sebastian Rittau
c21329b68a
Recommend using PEP 585 ( #5055 )
...
* Remove conventions enforced by black
Remove old note about optional default arguments (now part of
PEP 484 and enforced by CI)
* Recommend to use PEP 585
Cf. #4820
* Try out using collections.abc
* Reference mypy bug
2021-02-23 16:41:31 -08: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