mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -206,7 +206,7 @@ HAS_ALPN: bool
|
||||
HAS_ECDH: bool
|
||||
HAS_SNI: bool
|
||||
HAS_NPN: bool
|
||||
CHANNEL_BINDING_TYPES: List[str]
|
||||
CHANNEL_BINDING_TYPES: list[str]
|
||||
|
||||
OPENSSL_VERSION: str
|
||||
OPENSSL_VERSION_INFO: Tuple[int, int, int, int, int]
|
||||
@@ -338,7 +338,7 @@ class SSLSocket(socket.socket):
|
||||
@overload
|
||||
def getpeercert(self, binary_form: bool) -> _PeerCertRetType: ...
|
||||
def cipher(self) -> Tuple[str, str, int] | None: ...
|
||||
def shared_ciphers(self) -> List[Tuple[str, str, int]] | None: ...
|
||||
def shared_ciphers(self) -> list[Tuple[str, str, int]] | None: ...
|
||||
def compression(self) -> str | None: ...
|
||||
def get_channel_binding(self, cb_type: str = ...) -> bytes | None: ...
|
||||
def selected_alpn_protocol(self) -> str | None: ...
|
||||
@@ -379,13 +379,13 @@ class SSLContext:
|
||||
post_handshake_auth: bool
|
||||
def __new__(cls, protocol: int = ..., *args: Any, **kwargs: Any) -> SSLContext: ...
|
||||
def __init__(self, protocol: int = ...) -> None: ...
|
||||
def cert_store_stats(self) -> Dict[str, int]: ...
|
||||
def cert_store_stats(self) -> dict[str, int]: ...
|
||||
def load_cert_chain(self, certfile: StrPath, keyfile: StrPath | None = ..., password: _PasswordType | None = ...) -> None: ...
|
||||
def load_default_certs(self, purpose: Purpose = ...) -> None: ...
|
||||
def load_verify_locations(
|
||||
self, cafile: StrPath | None = ..., capath: StrPath | None = ..., cadata: str | bytes | None = ...
|
||||
) -> None: ...
|
||||
def get_ca_certs(self, binary_form: bool = ...) -> List[_PeerCertRetDictType] | List[bytes]: ...
|
||||
def get_ca_certs(self, binary_form: bool = ...) -> list[_PeerCertRetDictType] | list[bytes]: ...
|
||||
def get_ciphers(self) -> list[_Cipher]: ...
|
||||
def set_default_verify_paths(self) -> None: ...
|
||||
def set_ciphers(self, __cipherlist: str) -> None: ...
|
||||
@@ -414,7 +414,7 @@ class SSLContext:
|
||||
server_hostname: str | None = ...,
|
||||
session: SSLSession | None = ...,
|
||||
) -> SSLObject: ...
|
||||
def session_stats(self) -> Dict[str, int]: ...
|
||||
def session_stats(self) -> dict[str, int]: ...
|
||||
|
||||
class SSLObject:
|
||||
context: SSLContext
|
||||
@@ -437,7 +437,7 @@ class SSLObject:
|
||||
def selected_alpn_protocol(self) -> str | None: ...
|
||||
def selected_npn_protocol(self) -> str | None: ...
|
||||
def cipher(self) -> Tuple[str, str, int] | None: ...
|
||||
def shared_ciphers(self) -> List[Tuple[str, str, int]] | None: ...
|
||||
def shared_ciphers(self) -> list[Tuple[str, str, int]] | None: ...
|
||||
def compression(self) -> str | None: ...
|
||||
def pending(self) -> int: ...
|
||||
def do_handshake(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user