mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Use PEP 688 (#10225)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer, _BufferWithLen
|
||||
from _typeshed import ReadableBuffer, SizedBuffer
|
||||
from collections.abc import Callable
|
||||
from types import ModuleType
|
||||
from typing import Any, AnyStr, overload
|
||||
@@ -46,4 +46,4 @@ class HMAC:
|
||||
def compare_digest(__a: ReadableBuffer, __b: ReadableBuffer) -> bool: ...
|
||||
@overload
|
||||
def compare_digest(__a: AnyStr, __b: AnyStr) -> bool: ...
|
||||
def digest(key: _BufferWithLen, msg: ReadableBuffer, digest: _DigestMod) -> bytes: ...
|
||||
def digest(key: SizedBuffer, msg: ReadableBuffer, digest: _DigestMod) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user