mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-23 01:58:29 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -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,):
|
||||
|
||||
Reference in New Issue
Block a user