Skip to content
Myr

Tweak handling of None values in timeout type hints (#992)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Florimond Manca · committed by GitHub · parent 440b5ab · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:httpx/_types.py+5 added-1 removed
43 unmodified lines
44CookieTypes = Union["Cookies", CookieJar, Dict[str, str]]4546CertTypes = Union[str, Tuple[str, str], Tuple[str, str, str]]47VerifyTypes = Union[str, bool, ssl.SSLContext]48TimeoutTypes = Union[None, float, Tuple[float, float, float, float], "Timeout"]48TimeoutTypes = Union[49 Optional[float],50 Tuple[Optional[float], Optional[float], Optional[float], Optional[float]],51 "Timeout",52]53ProxiesTypes = Union[URLTypes, "Proxy", Dict[URLTypes, Union[URLTypes, "Proxy"]]]5455AuthTypes = Union[56 Tuple[Union[str, bytes], Union[str, bytes]],
16 unmodified lines