Skip to content
Myr

Make timeout parameter None-able & cleanup __all__. (#704)

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

* Timeout type annotation includes `None`. * Cleanup `__all__` exports.

authored by Joe · committed by Tom Christie · parent c050480 · Browse files · 3 files+3 added−4 removed
This commit

State

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

Diff stats

3 files+3 added−4 removed

  • other:+3 added−4 removed

3 files+3 added−4 removed

modified:httpx/__init__.py-2 removed
69 unmodified lines
70 "StreamConsumed",71 "ProxyError",72 "TooManyRedirects",73 "WriteTimeout",74 "BaseSocketStream",75 "ConcurrencyBackend",74 "URL",75 "StatusCode",76 "Cookies",77 "Headers",
7 unmodified lines
modified:httpx/config.py+3 added-1 removed
8 unmodified lines
9from .utils import get_ca_bundle_from_env, get_logger1011CertTypes = typing.Union[str, typing.Tuple[str, str], typing.Tuple[str, str, str]]12VerifyTypes = typing.Union[str, bool, ssl.SSLContext]13TimeoutTypes = typing.Union[float, typing.Tuple[float, float, float, float], "Timeout"]13TimeoutTypes = typing.Union[14 None, float, typing.Tuple[float, float, float, float], "Timeout"15]161718USER_AGENT = f"python-httpx/{__version__}"19
302 unmodified lines
modified:httpx/models.py-1 removed
44 unmodified lines
45 str_query_param,46)4748if typing.TYPE_CHECKING: # pragma: no cover49 from .middleware.base import BaseMiddleware # noqa: F40149 from .dispatch.base import Dispatcher # noqa: F4015051PrimitiveData = typing.Optional[typing.Union[str, int, float, bool]]52
1065 unmodified lines