diff --git a/stdlib/secrets.pyi b/stdlib/secrets.pyi index 4861b6f09340..76479af97a07 100644 --- a/stdlib/secrets.pyi +++ b/stdlib/secrets.pyi @@ -1,12 +1,14 @@ from _typeshed import SupportsLenAndGetItem from hmac import compare_digest as compare_digest from random import SystemRandom as SystemRandom -from typing import TypeVar +from typing import Final, TypeVar __all__ = ["choice", "randbelow", "randbits", "SystemRandom", "token_bytes", "token_hex", "token_urlsafe", "compare_digest"] _T = TypeVar("_T") +DEFAULT_ENTROPY: Final[int] + def randbelow(exclusive_upper_bound: int) -> int: ... def randbits(k: int) -> int: ... def choice(seq: SupportsLenAndGetItem[_T]) -> _T: ...