mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
13 lines
408 B
Python
13 lines
408 B
Python
from typing_extensions import TypeAlias
|
|
|
|
# Actually Tuple[(int,) * 625]
|
|
_State: TypeAlias = tuple[int, ...]
|
|
|
|
class Random:
|
|
def __init__(self, seed: object = ...) -> None: ...
|
|
def seed(self, n: object = None, /) -> None: ...
|
|
def getstate(self) -> _State: ...
|
|
def setstate(self, state: _State, /) -> None: ...
|
|
def random(self) -> float: ...
|
|
def getrandbits(self, k: int, /) -> int: ...
|