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