File: _random.pyi

package info (click to toggle)
mypy 0.470-complete-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,864 kB
  • ctags: 3,264
  • sloc: python: 21,838; makefile: 18
file content (13 lines) | stat: -rw-r--r-- 425 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
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: ...
    def jumpahead(self, i: int) -> None: ...