mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-02 05:16:53 +08:00
committed by
Łukasz Langa
parent
56bc0f5766
commit
6f5c6b5078
@@ -9,6 +9,8 @@ _B = Union[bytes, bytearray]
|
||||
# TODO more precise type for object of hashlib
|
||||
_Hash = Any
|
||||
|
||||
digest_size: None
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
def new(key: _B, msg: Optional[_B] = ...,
|
||||
digestmod: Optional[Union[str, Callable[[], _Hash], ModuleType]] = ...) -> HMAC: ...
|
||||
|
||||
Reference in New Issue
Block a user