You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> u
DecodedURL(url=URL.from_text('https://example.com/api/v1/webui'))
>>> u.replace(path="support/woo")
DecodedURL(url=URL.from_text('https://example.com/s/u/p/p/o/r/t/%2F/w/o/o''))
I know path is supposed to be an iterable, not a string in this case, i.e. I should have done path=["support", "woo"]. But maybe it would be more user friendly to have the internal logic be something like:
if isinstance(path, str):
path = path.split('/')
The text was updated successfully, but these errors were encountered:
I know
path
is supposed to be an iterable, not a string in this case, i.e. I should have donepath=["support", "woo"]
. But maybe it would be more user friendly to have the internal logic be something like:The text was updated successfully, but these errors were encountered: