mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +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
@@ -1,3 +1,6 @@
|
||||
# Stubs for _random
|
||||
|
||||
import sys
|
||||
from typing import Tuple
|
||||
|
||||
# Actually Tuple[(int,) * 625]
|
||||
@@ -10,4 +13,5 @@ class Random(object):
|
||||
def setstate(self, state: _State) -> None: ...
|
||||
def random(self) -> float: ...
|
||||
def getrandbits(self, k: int) -> int: ...
|
||||
def jumpahead(self, i: int) -> None: ...
|
||||
if sys.version_info < (3,):
|
||||
def jumpahead(self, i: int) -> None: ...
|
||||
@@ -1,12 +0,0 @@
|
||||
# Stubs for _random
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
from typing import Any
|
||||
|
||||
class Random:
|
||||
def seed(self, x: Any = ...) -> None: ...
|
||||
def getstate(self) -> tuple: ...
|
||||
def setstate(self, state: tuple) -> None: ...
|
||||
def random(self) -> float: ...
|
||||
def getrandbits(self, k: int) -> int: ...
|
||||
Reference in New Issue
Block a user