black reformat, some fixes

This commit is contained in:
Maxim Kurnikov
2018-12-06 19:13:06 +03:00
parent 25a71a7ef5
commit 5ec2830ba6
108 changed files with 673 additions and 187 deletions

View File

@@ -7,5 +7,9 @@ def salted_hmac(key_salt: str, value: Union[bytes, str], secret: Optional[Union[
def get_random_string(length: int = ..., allowed_chars: str = ...) -> str: ...
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: ...