massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3.6 / secrets.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3.6/secrets.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3.6/secrets.pyi
new file mode 100644 (file)
index 0000000..77721fe
--- /dev/null
@@ -0,0 +1,14 @@
+# Stubs for secrets (Python 3.6)\r
+\r
+from typing import Optional, Sequence, TypeVar\r
+from hmac import compare_digest as compare_digest\r
+from random import SystemRandom as SystemRandom\r
+\r
+_T = TypeVar('_T')\r
+\r
+def randbelow(exclusive_upper_bound: int) -> int: ...\r
+def randbits(k: int) -> int: ...\r
+def choice(seq: Sequence[_T]) -> _T: ...\r
+def token_bytes(nbytes: Optional[int] = ...) -> bytes: ...\r
+def token_hex(nbytes: Optional[int] = ...) -> str: ...\r
+def token_urlsafe(nbytes: Optional[int] = ...) -> str: ...\r