mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Re-organize directory structure (#4971)
See discussion in #2491 Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
12
stdlib/secrets.pyi
Normal file
12
stdlib/secrets.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
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: ...
|
||||
Reference in New Issue
Block a user