mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
This commit is contained in:
parent
4a686504eb
commit
2085bd0877
34 changed files with 126 additions and 261 deletions
|
@ -100,7 +100,7 @@ class Random(_random.Random):
|
|||
self.seed(x)
|
||||
self.gauss_next = None
|
||||
|
||||
def __init_subclass__(cls, **kwargs):
|
||||
def __init_subclass__(cls, /, **kwargs):
|
||||
"""Control how subclasses generate random integers.
|
||||
|
||||
The algorithm a subclass can use depends on the random() and/or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue