Skip to content

Commit c277fb8

Browse files
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 <florimond.manca@gmail.com>
1 parent a4463d0 commit c277fb8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

httpx/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,9 @@
109109
"DigestAuth",
110110
"WSGITransport",
111111
]
112+
113+
114+
_locals = locals()
115+
for name in __all__:
116+
if not name.startswith("__"):
117+
setattr(_locals[name], "__module__", "httpx") # noqa

0 commit comments

Comments
 (0)