From c277fb816ad090306d58f1108293e387714fd438 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 11 Aug 2020 15:40:39 +0100 Subject: [PATCH] Set `__module__ = 'httpx'` on everything we expose via the public API. (#1155) * Set __module__='httpx' on everything we expose via the public API * Linting * Update httpx/__init__.py * Update httpx/__init__.py Co-authored-by: Florimond Manca --- httpx/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/httpx/__init__.py b/httpx/__init__.py index d9ae3513ad..c46e74b1b3 100644 --- a/httpx/__init__.py +++ b/httpx/__init__.py @@ -109,3 +109,9 @@ "DigestAuth", "WSGITransport", ] + + +_locals = locals() +for name in __all__: + if not name.startswith("__"): + setattr(_locals[name], "__module__", "httpx") # noqa