From 1e33759f09371a32e0af3cfc5ea43e624e43e2fc Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 23 Aug 2022 19:38:08 +0100 Subject: [PATCH] `cryptography`: Add some missing `@abstractmethod` decorators (#8598) --- stubs/cryptography/cryptography/x509/__init__.pyi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stubs/cryptography/cryptography/x509/__init__.pyi b/stubs/cryptography/cryptography/x509/__init__.pyi index 0d0610157..3086c95fe 100644 --- a/stubs/cryptography/cryptography/x509/__init__.pyi +++ b/stubs/cryptography/cryptography/x509/__init__.pyi @@ -167,6 +167,10 @@ class Certificate(metaclass=ABCMeta): def public_bytes(self, encoding: Encoding) -> bytes: ... @abstractmethod def public_key(self) -> DSAPublicKey | Ed25519PublicKey | Ed448PublicKey | EllipticCurvePublicKey | RSAPublicKey: ... + @abstractmethod + def __eq__(self, __other: object) -> bool: ... + @abstractmethod + def __ne__(self, __other: object) -> bool: ... class CertificateBuilder: def __init__( @@ -222,6 +226,10 @@ class CertificateRevocationList(metaclass=ABCMeta): ) -> bool: ... @abstractmethod def public_bytes(self, encoding: Encoding) -> bytes: ... + @abstractmethod + def __eq__(self, __other: object) -> bool: ... + @abstractmethod + def __ne__(self, __other: object) -> bool: ... class CertificateRevocationListBuilder: def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateRevocationListBuilder: ... @@ -255,6 +263,10 @@ class CertificateSigningRequest(metaclass=ABCMeta): def public_bytes(self, encoding: Encoding) -> bytes: ... @abstractmethod def public_key(self) -> DSAPublicKey | Ed25519PublicKey | Ed448PublicKey | EllipticCurvePublicKey | RSAPublicKey: ... + @abstractmethod + def __eq__(self, __other: object) -> bool: ... + @abstractmethod + def __ne__(self, __other: object) -> bool: ... class CertificateSigningRequestBuilder: def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateSigningRequestBuilder: ...