mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Fix Crypto.Random.randrange argument types (#3662)
Crypto.random.randrange takes the same argument types as random.randrange.
This commit is contained in:
committed by
Sebastian Rittau
parent
99d79696d7
commit
d413b4b162
4
third_party/2and3/Crypto/Random/random.pyi
vendored
4
third_party/2and3/Crypto/Random/random.pyi
vendored
@@ -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]): ...
|
||||
|
||||
Reference in New Issue
Block a user