We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61cdd4b commit 5f98dbbCopy full SHA for 5f98dbb
stdlib/3.6/secrets.pyi
@@ -0,0 +1,14 @@
1
+# Stubs for secrets (Python 3.6)
2
+
3
+from typing import Optional, Sequence, TypeVar
4
+from hmac import compare_digest as compare_digest
5
+from random import SystemRandom as SystemRandom
6
7
+_T = TypeVar('_T')
8
9
+def randbelow(exclusive_upper_bound: int) -> int: ...
10
+def randbits(k: int) -> int: ...
11
+def choice(seq: Sequence[_T]) -> _T: ...
12
+def token_bytes(nbytes: Optional[int]) -> bytes: ...
13
+def token_hex(nbytes: Optional[int]) -> str: ...
14
+def token_urlsafe(nbytes: Optional[int]) -> str: ...
0 commit comments