From 960c4eb42dcb634ba2a3a2ab4f984d5d07fd7504 Mon Sep 17 00:00:00 2001 From: Markus Wamser Date: Thu, 21 May 2020 03:58:21 +0200 Subject: [PATCH] cryptography: fix signature of ECDSA (#4049) --- .../2and3/cryptography/hazmat/primitives/asymmetric/ec.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ec.pyi b/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ec.pyi index f8b7e1638..137f7138b 100644 --- a/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ec.pyi +++ b/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ec.pyi @@ -183,7 +183,7 @@ class EllipticCurveSignatureAlgorithm(metaclass=ABCMeta): class ECDH(object): ... class ECDSA(EllipticCurveSignatureAlgorithm): - def __init__(self, algorithm: HashAlgorithm): ... + def __init__(self, algorithm: Union[HashAlgorithm, Prehashed]): ... @property def algorithm(self) -> Union[HashAlgorithm, Prehashed]: ...