Fix Crypto.Random.randrange argument types (#3662)

Crypto.random.randrange takes the same argument types as random.randrange.
This commit is contained in:
Fionn Fitzmaurice
2020-01-27 01:54:01 +08:00
committed by Sebastian Rittau
parent 99d79696d7
commit d413b4b162

View File

@@ -5,14 +5,14 @@ _T = TypeVar('_T')
class StrongRandom:
def __init__(self, rng: Optional[Any] = ..., randfunc: Optional[Any] = ...) -> None: ...
def getrandbits(self, k: int) -> int: ...
def randrange(self, *args: int) -> int: ...
def randrange(self, start: int, stop: int = ..., step: int = ...) -> int: ...
def randint(self, a: int, b: int) -> int: ...
def choice(self, seq: Sequence[_T]) -> _T: ...
def shuffle(self, x: Sequence[Any]): ...
def sample(self, population: Sequence[_T], k: int) -> List[_T]: ...
def getrandbits(k: int) -> int: ...
def randrange(*args: int) -> int: ...
def randrange(start: int, stop: int = ..., step: int = ...) -> int: ...
def randint(a: int, b: int) -> int: ...
def choice(seq: Sequence[_T]) -> _T: ...
def shuffle(x: Sequence[Any]): ...