From: Tom Christie Date: Tue, 11 Aug 2020 14:40:39 +0000 (+0100) Subject: Set `__module__ = 'httpx'` on everything we expose via the public API. (#1155) X-Git-Tag: 0.14.2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c277fb816ad090306d58f1108293e387714fd438;p=thirdparty%2Fhttpx.git 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 --- diff --git a/httpx/__init__.py b/httpx/__init__.py index d9ae3513..c46e74b1 100644 --- a/httpx/__init__.py +++ b/httpx/__init__.py @@ -109,3 +109,9 @@ __all__ = [ "DigestAuth", "WSGITransport", ] + + +_locals = locals() +for name in __all__: + if not name.startswith("__"): + setattr(_locals[name], "__module__", "httpx") # noqa