add some missing constants (#1198)

Closes #2
This commit is contained in:
Jelle Zijlstra
2017-04-24 15:05:02 -07:00
committed by Łukasz Langa
parent 56bc0f5766
commit 6f5c6b5078
3 changed files with 6 additions and 0 deletions

View File

@@ -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: ...