Maybe move ssl imports into a TYPE_CHECKING block?
#3263
Unanswered
CNSeniorious000
asked this question in
General
Replies: 1 comment
|
Current httpx already does the TYPE_CHECKING split in So HTTPS still needs If Pyodide still pulls You cannot drop the runtime import entirely. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I made a package to patch httpx for using in pyodide, and you can try a live demo here.
The problem is, code inside
httpxhave imports tossl, so I have to installssl(in pyodide runtime, these modules not bundled by default). Butsslis heavy and I only see type imports insidehttpxwithssl, so I wonder can try this:Or
All reactions