mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 00:43:45 +08:00
Add precise overloads for SSLContext.get_ca_certs (#7933)
This commit is contained in:
1 parent
b4518bfb2b
commit
8a07787f48
2 files changed
+12
-2
No files matched your search
+6
-1
@@ -412,7 +412,12 @@ class SSLContext:
|
||||
def load_verify_locations(
|
||||
self, cafile: StrOrBytesPath | None = ..., capath: StrOrBytesPath | None = ..., cadata: str | 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 get_ciphers(self) -> list[_Cipher]: ...
|
||||
def set_default_verify_paths(self) -> None: ...
|
||||
def set_ciphers(self, __cipherlist: str) -> None: ...
|
||||
|
||||
Reference in new issue
Block a user