aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/Cryptodome/Random/random.pyi
diff options
context:
space:
mode:
Diffstat (limited to 'frozen_deps/Cryptodome/Random/random.pyi')
-rw-r--r--frozen_deps/Cryptodome/Random/random.pyi6
1 files changed, 4 insertions, 2 deletions
diff --git a/frozen_deps/Cryptodome/Random/random.pyi b/frozen_deps/Cryptodome/Random/random.pyi
index f873c4a..9b7cf7e 100644
--- a/frozen_deps/Cryptodome/Random/random.pyi
+++ b/frozen_deps/Cryptodome/Random/random.pyi
@@ -1,13 +1,15 @@
-from typing import Callable, Tuple, Union, Sequence, Any, Optional
+from typing import Callable, Tuple, Union, Sequence, Any, Optional, TypeVar
__all__ = ['StrongRandom', 'getrandbits', 'randrange', 'randint', 'choice', 'shuffle', 'sample']
+T = TypeVar('T')
+
class StrongRandom(object):
def __init__(self, rng: Optional[Any]=None, randfunc: Optional[Callable]=None) -> None: ... # TODO What is rng?
def getrandbits(self, k: 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) -> object: ...
+ def choice(self, seq: Sequence[T]) -> T: ...
def shuffle(self, x: Sequence) -> None: ...
def sample(self, population: Sequence, k: int) -> list: ...