mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from datetime import datetime
|
||||
from typing import Any, Callable, Iterable, Sequence, Text, Tuple, Union
|
||||
from typing import Any, Callable, Iterable, Sequence, Text, Union
|
||||
|
||||
from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey
|
||||
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey
|
||||
@@ -118,7 +118,7 @@ class CRL:
|
||||
@classmethod
|
||||
def from_cryptography(cls, crypto_crl: CertificateRevocationList) -> CRL: ...
|
||||
def get_issuer(self) -> X509Name: ...
|
||||
def get_revoked(self) -> Tuple[Revoked, ...]: ...
|
||||
def get_revoked(self) -> tuple[Revoked, ...]: ...
|
||||
def set_lastUpdate(self, when: bytes) -> None: ...
|
||||
def set_nextUpdate(self, when: bytes) -> None: ...
|
||||
def set_version(self, version: int) -> None: ...
|
||||
@@ -166,7 +166,7 @@ class PKCS7:
|
||||
class PKCS12:
|
||||
def __init__(self) -> None: ...
|
||||
def export(self, passphrase: bytes | None = ..., iter: int = ..., maciter: int = ...) -> bytes: ...
|
||||
def get_ca_certificates(self) -> Tuple[X509, ...]: ...
|
||||
def get_ca_certificates(self) -> tuple[X509, ...]: ...
|
||||
def get_certificate(self) -> X509: ...
|
||||
def get_friendlyname(self) -> bytes | None: ...
|
||||
def get_privatekey(self) -> PKey: ...
|
||||
|
||||
Reference in New Issue
Block a user