aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/Cryptodome/Random/random.pyi
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2024-08-23 03:14:03 +0000
committerDeterminant <[email protected]>2024-08-22 20:34:57 -0700
commit8d1c76ec7caf247d5675e14260d20fc508977ffb (patch)
tree8fa7c8ce3b7e3f4ece150a6da5922b5eb2dc7772 /frozen_deps/Cryptodome/Random/random.pyi
parent258780284151d49cba1d9c0d2ce33f9a19bb058b (diff)
release v0.1.8
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: ...