summaryrefslogtreecommitdiff
path: root/shared-bindings/random/__init__.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-07-28 14:15:02 -0400
committerDan Halbert <halbert@halwitz.org>2020-07-28 14:15:02 -0400
commitaa97ea25016c60edf688b51f6495f8fbd740cc8e (patch)
treef5b24b64a8f55f0e940e2aabb947e2825729c6e9 /shared-bindings/random/__init__.c
parente5e132a36436aa5aa0a6124b28edd44536fc38c7 (diff)
parent9fc7118861a118b9e0a7e37b6bc902654ee11401 (diff)
Merge remote-tracking branch 'adafruit/main' into blm_badge
Diffstat (limited to 'shared-bindings/random/__init__.c')
-rw-r--r--shared-bindings/random/__init__.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared-bindings/random/__init__.c b/shared-bindings/random/__init__.c
index 10ddca499..35756eef1 100644
--- a/shared-bindings/random/__init__.c
+++ b/shared-bindings/random/__init__.c
@@ -46,6 +46,9 @@
//| .. warning:: Numbers from this module are not cryptographically strong! Use
//| bytes from `os.urandom` directly for true randomness."""
//|
+//| from typing import TypeVar
+//| _T = TypeVar('_T')
+//|
//| def seed(seed: int) -> None:
//| """Sets the starting seed of the random number generation. Further calls to
@@ -129,7 +132,7 @@ STATIC mp_obj_t random_randint(mp_obj_t a_in, mp_obj_t b_in) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_2(random_randint_obj, random_randint);
-//| def choice(seq: list) -> Any:
+//| def choice(seq: Sequence[_T]) -> _T:
//| """Returns a randomly selected element from the given sequence. Raises
//| IndexError when the sequence is empty."""
//| ...