Skip to content

Instantly share code, notes, and snippets.

@kdelwat
Created January 3, 2017 02:34
Show Gist options
  • Save kdelwat/44db48c4edf6984c0d69bc52a839c9c3 to your computer and use it in GitHub Desktop.
Save kdelwat/44db48c4edf6984c0d69bc52a839c9c3 to your computer and use it in GitHub Desktop.
Stubs for Secrets
# Stubs for secrets (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
from hmac import compare_digest as compare_digest
from random import SystemRandom as SystemRandom
randbits = ... # type: Any
choice = ... # type: Any
def randbelow(exclusive_upper_bound): ...
def token_bytes(nbytes: Optional[Any] = ...): ...
def token_hex(nbytes: Optional[Any] = ...): ...
def token_urlsafe(nbytes: Optional[Any] = ...): ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment