mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
cryptography: Add some missing @abstractmethod decorators (#8598)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user