Skip to content

Commit 111bbb5

Browse files
authored
Add secrets.DEFAULT_ENTROPY (#15261)
1 parent c96d8dd commit 111bbb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/secrets.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
from _typeshed import SupportsLenAndGetItem
22
from hmac import compare_digest as compare_digest
33
from random import SystemRandom as SystemRandom
4-
from typing import TypeVar
4+
from typing import Final, TypeVar
55

66
__all__ = ["choice", "randbelow", "randbits", "SystemRandom", "token_bytes", "token_hex", "token_urlsafe", "compare_digest"]
77

88
_T = TypeVar("_T")
99

10+
DEFAULT_ENTROPY: Final[int]
11+
1012
def randbelow(exclusive_upper_bound: int) -> int: ...
1113
def randbits(k: int) -> int: ...
1214
def choice(seq: SupportsLenAndGetItem[_T]) -> _T: ...

0 commit comments

Comments
 (0)