apply black and isort (#4287)

* apply black and isort

* move some type ignores
This commit is contained in:
Jelle Zijlstra
2020-06-28 13:31:00 -07:00
committed by GitHub
parent fe58699ca5
commit 5d553c9584
800 changed files with 13875 additions and 10332 deletions

View File

@@ -1,8 +1,9 @@
# Stubs for hmac
from typing import Any, AnyStr, Callable, Optional, Union, overload
from types import ModuleType
import sys
from types import ModuleType
from typing import Any, AnyStr, Callable, Optional, Union, overload
from _typeshed import ReadableBuffer
_B = Union[bytes, bytearray]
@@ -20,12 +21,12 @@ if sys.version_info >= (3, 8):
def new(key: _B, msg: Optional[ReadableBuffer], digestmod: _DigestMod) -> HMAC: ...
@overload
def new(key: _B, *, digestmod: _DigestMod) -> HMAC: ...
elif sys.version_info >= (3, 4):
def new(key: _B, msg: Optional[ReadableBuffer] = ...,
digestmod: Optional[_DigestMod] = ...) -> HMAC: ...
def new(key: _B, msg: Optional[ReadableBuffer] = ..., digestmod: Optional[_DigestMod] = ...) -> HMAC: ...
else:
def new(key: _B, msg: Optional[ReadableBuffer] = ...,
digestmod: Optional[_DigestMod] = ...) -> HMAC: ...
def new(key: _B, msg: Optional[ReadableBuffer] = ..., digestmod: Optional[_DigestMod] = ...) -> HMAC: ...
class HMAC:
if sys.version_info >= (3,):