massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / secrets.pyi
1 from hmac import compare_digest as compare_digest
2 from random import SystemRandom as SystemRandom
3 from typing import Sequence, TypeVar
4
5 _T = TypeVar("_T")
6
7 def randbelow(exclusive_upper_bound: int) -> int: ...
8 def randbits(k: int) -> int: ...
9 def choice(seq: Sequence[_T]) -> _T: ...
10 def token_bytes(nbytes: int | None = ...) -> bytes: ...
11 def token_hex(nbytes: int | None = ...) -> str: ...
12 def token_urlsafe(nbytes: int | None = ...) -> str: ...