mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-14 07:47:09 +08:00
Add precise overloads for SSLContext.get_ca_certs (#7933)
This commit is contained in:
@@ -225,7 +225,12 @@ class SSLContext:
|
||||
def load_verify_locations(
|
||||
self, cafile: StrPath | None = ..., capath: StrPath | None = ..., cadata: Text | bytes | None = ...
|
||||
) -> None: ...
|
||||
def get_ca_certs(self, binary_form: bool = ...) -> list[_PeerCertRetDictType] | list[bytes]: ...
|
||||
@overload
|
||||
def get_ca_certs(self, binary_form: Literal[False] = ...) -> list[_PeerCertRetDictType]: ...
|
||||
@overload
|
||||
def get_ca_certs(self, binary_form: Literal[True]) -> list[bytes]: ...
|
||||
@overload
|
||||
def get_ca_certs(self, binary_form: bool = ...) -> Any: ...
|
||||
def set_default_verify_paths(self) -> None: ...
|
||||
def set_ciphers(self, __cipherlist: str) -> None: ...
|
||||
def set_alpn_protocols(self, alpn_protocols: Iterable[str]) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user