Files
typeshed/stdlib/3.6/secrets.pyi
Jelle Zijlstra 5d553c9584 apply black and isort (#4287)
* apply black and isort

* move some type ignores
2020-06-28 13:31:00 -07:00

15 lines
501 B
Python

# Stubs for secrets (Python 3.6)
from hmac import compare_digest as compare_digest
from random import SystemRandom as SystemRandom
from typing import Optional, 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: Optional[int] = ...) -> bytes: ...
def token_hex(nbytes: Optional[int] = ...) -> str: ...
def token_urlsafe(nbytes: Optional[int] = ...) -> str: ...