Reduce use of deprecated typing aliases (#6358)

This commit is contained in:
Alex Waygood authored and GitHub committed 2021-11-23 10:56:43 +01:00
1 parent 7e836db2f3
commit c685c2d6c6
19 files changed
+64 -61

No files matched your search

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