From: Marat Sharafutdinov Date: Wed, 10 Mar 2021 09:49:37 +0000 (+0300) Subject: Fix CertTypes (#1503) X-Git-Tag: 0.17.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24a55d73c31475f3d17ee46580810bc30efc369b;p=thirdparty%2Fhttpx.git Fix CertTypes (#1503) --- diff --git a/httpx/_types.py b/httpx/_types.py index 7768bac1..385f89dd 100644 --- a/httpx/_types.py +++ b/httpx/_types.py @@ -51,7 +51,14 @@ HeaderTypes = Union[ CookieTypes = Union["Cookies", CookieJar, Dict[str, str], List[Tuple[str, str]]] -CertTypes = Union[str, Tuple[str, str], Tuple[str, str, str]] +CertTypes = Union[ + # certfile + str, + # (certfile, keyfile) + Tuple[str, Optional[str]], + # (certfile, keyfile, password) + Tuple[str, Optional[str], Optional[str]], +] VerifyTypes = Union[str, bool, ssl.SSLContext] TimeoutTypes = Union[ Optional[float],