mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
13 lines
448 B
Python
13 lines
448 B
Python
from hmac import compare_digest as compare_digest
|
|
from random import SystemRandom as SystemRandom
|
|
from typing import Sequence, TypeVar
|
|
|
|
_T = TypeVar("_T")
|
|
|
|
def randbelow(exclusive_upper_bound: int) -> int: ...
|
|
def randbits(k: int) -> int: ...
|
|
def choice(seq: Sequence[_T]) -> _T: ...
|
|
def token_bytes(nbytes: int | None = ...) -> bytes: ...
|
|
def token_hex(nbytes: int | None = ...) -> str: ...
|
|
def token_urlsafe(nbytes: int | None = ...) -> str: ...
|