Repository navigation
Custom URL types
#1301
|
I like to use yarl for storing and manipulating URLs. The import yarl, requests, httpx2
url = yarl.URL("https://brunn.ing")
r1 = requests.get(url)
r2 = httpx2.get(url)
Traceback (most recent call last):
...
TypeError: Invalid type for url. Expected str or httpx2.URL, got <class 'yarl.URL'>: URL('https://brunn.ing')I'm moving a largish codebase over from (I used to use furl rather than |
Answered by
Kludex
Oct 27, 2026
Replies: 1 comment 6 replies
|
Is your point that |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can try and see how a PR would look like, we should also check what would be the downside of doing this (I'm not sure?). I think I've faced this kind of situation in the past.