Commit Graph

12 Commits

Author SHA1 Message Date
Jelle Zijlstra
5d553c9584 apply black and isort (#4287)
* apply black and isort

* move some type ignores
2020-06-28 13:31:00 -07:00
helafumpek
534ebd5051 Change argument type in random.shuffle (python/typeshed#4255) (#4260)
Fixes #4255
2020-06-24 08:17:13 +02:00
Shantanu
1c0403cf83 random: various fixes (#4128)
* random.sample: make counts keyword-only

* random: mark positional-only args

* random.triangular: fix type of mode

* random: add randbytes

Co-authored-by: hauntsaninja <>
2020-05-27 22:05:55 -07:00
Shantanu
9c53756f9c random: update for py39 (#4069)
Co-authored-by: hauntsaninja <>
2020-05-24 17:51:53 -07:00
Sebastian Rittau
c32e1e2280 Enable --disallow-any-generics for stubs (#3288) 2019-10-01 05:31:34 -07:00
Sebastian Rittau
006a79220f Flake8 fixes (#2549)
* Fix over-indented continuation lines

* Fix under-indented continuation lines

* Fix whitespace around default operator problems

* Limit line lengths

* Fix inconsistent files
2018-10-24 07:20:53 -07:00
Jakub Nabaglo
d84069e78d Add stub for random.Random.choices (#2156) 2018-05-21 19:38:00 -07:00
Jelle Zijlstra
6152bad0af add random.choices for 3.6 (#1329) 2017-05-24 14:09:52 -07:00
Guido van Rossum
017f4efa0f Simplify SystemRandom now it subclasses Random, for 2.7 and 3. 2016-01-06 16:29:04 -08:00
Michael Walter
c62821221a Update random.pyi
SystemRandom derives from Random (see http://svn.python.org/projects/python/branches/py3k/Lib/random.py).
2015-12-30 22:18:10 +01:00
Matthias Kramm
94c9ce8fd0 Consistently use '= ...' for optional parameters. 2015-11-09 13:55:02 -08:00
Matthias Kramm
337abed05a add (overwrite with) mypy stubs, if available 2015-09-30 09:59:44 -07:00