mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Simplify SystemRandom now it subclasses Random, for 2.7 and 3.
This commit is contained in:
@@ -40,10 +40,7 @@ class Random(_random.Random):
|
||||
|
||||
# SystemRandom is not implemented for all OS's; good on Windows & Linux
|
||||
class SystemRandom(Random):
|
||||
def __init__(self, randseed: object = ...) -> None: ...
|
||||
def random(self) -> float: ...
|
||||
def getrandbits(self, k: int) -> int: ...
|
||||
def seed(self, arg: object) -> None: ...
|
||||
...
|
||||
|
||||
# ----- random function stubs -----
|
||||
def seed(a: Any = ..., version: int = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user