Skip to content

Commit

Permalink
Set __module__ = 'httpx' on everything we expose via the public API. (
Browse files Browse the repository at this point in the history
#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>
  • Loading branch information
tomchristie and florimondmanca committed Aug 11, 2020
1 parent a4463d0 commit c277fb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions httpx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,9 @@
"DigestAuth",
"WSGITransport",
]


_locals = locals()
for name in __all__:
if not name.startswith("__"):
setattr(_locals[name], "__module__", "httpx") # noqa

0 comments on commit c277fb8

Please sign in to comment.