run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -3,19 +3,9 @@ from typing import Any, Callable, Optional, Union
using_sysrandom: bool
def salted_hmac(
key_salt: str,
value: Union[bytes, str],
secret: Optional[Union[bytes, str]] = ...,
) -> HMAC: ...
def salted_hmac(key_salt: str, value: Union[bytes, str], secret: Optional[Union[bytes, str]] = ...) -> HMAC: ...
def get_random_string(length: int = ..., allowed_chars: str = ...) -> str: ...
def constant_time_compare(
val1: Union[bytes, str], val2: Union[bytes, str]
) -> bool: ...
def constant_time_compare(val1: Union[bytes, str], val2: Union[bytes, str]) -> bool: ...
def pbkdf2(
password: Union[bytes, str],
salt: Union[bytes, str],
iterations: int,
dklen: int = ...,
digest: Optional[Callable] = ...,
password: Union[bytes, str], salt: Union[bytes, str], iterations: int, dklen: int = ..., digest: Optional[Callable] = ...
) -> bytes: ...