Repository navigation
Reorganize __init__ modules - #786
florimondmanca wants to merge 1 commit into
Conversation
I'd probably go the other way on that, since using I think it's okay for us to do for the exceptions, since that's such a big list, and since they're fairly obviously exception classes, and since it's a big ol' chunk of stuff. I'd probably prefer if we either:
|
|
Okay then, I鈥檓 not sure I understood the initial motivation. Is it just that we鈥檇 want to prevent users from doing |
|
I think we're ducking out on this refactor, right? |
* Add proxy_ssl_context argument * Add changelog * Add sync support for TLS-in-TLS connections * Add HTTPS proxy docs * Update CHANGELOG.md * Update httpcore/_sync/http_proxy.py * Update httpcore/_async/http_proxy.py * Update httpcore/_async/http_proxy.py * Update httpcore/_sync/http_proxy.py * Update httpcore/_backends/sync.py Co-authored-by: Kar Petrosyan <92274156+karosis88@users.noreply.github.com> --------- Co-authored-by: karosis88 <kar.petrosyanpy@gmail.com> Co-authored-by: Kar Petrosyan <92274156+karosis88@users.noreply.github.com>
Builds on #785 (which is currently the base here for the sake of review).
This PR moves the declarations from the top-level
__init__.pyto__all__variables in each module that contains public API elements.I figured the consistency of adding an
__all__everywhere (even though we only expose a small selection of elements) was nicer than mixingfrom _foo import */from _bar import A, B, Cin the top-level__init__.py. :-)