Reduce use of deprecated typing aliases (#6358)

This commit is contained in:
Alex Waygood
2021-11-23 09:56:43 +00:00
committed by GitHub
parent 7e836db2f3
commit c685c2d6c6
19 changed files with 64 additions and 61 deletions

View File

@@ -1,5 +1,5 @@
from datetime import datetime
from typing import Any, Callable, Iterable, Sequence, Set, Text, Tuple, Union
from typing import Any, Callable, Iterable, Sequence, Text, Tuple, Union
from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey
@@ -183,7 +183,7 @@ class NetscapeSPKI:
def sign(self, pkey: PKey, digest: bytes) -> None: ...
def verify(self, key: PKey) -> bool: ...
def get_elliptic_curves() -> Set[_EllipticCurve]: ...
def get_elliptic_curves() -> set[_EllipticCurve]: ...
def get_elliptic_curve(name: Text) -> _EllipticCurve: ...
def dump_certificate(type: int, cert: X509) -> bytes: ...
def load_certificate(type: int, buffer: bytes) -> X509: ...