mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
Reduce use of deprecated typing aliases (#6358)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user