add more minor 3.7 new features (#2000)

part of #1965
This commit is contained in:
Jelle Zijlstra
2018-03-28 21:28:27 -07:00
committed by GitHub
parent 6a1d25b73e
commit 43e6c3c435
5 changed files with 29 additions and 5 deletions

View File

@@ -35,3 +35,6 @@ def compare_digest(a: str, b: str) -> bool: ...
def compare_digest(a: bytes, b: bytes) -> bool: ...
@overload
def compare_digest(a: bytearray, b: bytearray) -> bool: ...
if sys.version_info >= (3, 7):
def digest(key: _B, msg: _B, digest: str) -> bytes: ...