mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-27 13:22:11 +08:00
Merge _random into 2and3 (#1134)
* Merge random module * Move _random into 2and3
This commit is contained in:
committed by
Matthias Kramm
parent
bc2234dba2
commit
47c325c0ae
17
stdlib/2and3/_random.pyi
Normal file
17
stdlib/2and3/_random.pyi
Normal file
@@ -0,0 +1,17 @@
|
||||
# Stubs for _random
|
||||
|
||||
import sys
|
||||
from typing import Tuple
|
||||
|
||||
# Actually Tuple[(int,) * 625]
|
||||
_State = Tuple[int, ...]
|
||||
|
||||
class Random(object):
|
||||
def __init__(self, seed: object = ...) -> None: ...
|
||||
def seed(self, x: object = ...) -> None: ...
|
||||
def getstate(self) -> _State: ...
|
||||
def setstate(self, state: _State) -> None: ...
|
||||
def random(self) -> float: ...
|
||||
def getrandbits(self, k: int) -> int: ...
|
||||
if sys.version_info < (3,):
|
||||
def jumpahead(self, i: int) -> None: ...
|
||||
Reference in New Issue
Block a user