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
I have searched Google & GitHub for similar requests and couldn't find anything
I have read and followed the docs and still think this feature is missing
Description
A method to correctly join URLs:
>>>a=Url("https://example.com/")
>>>a.join("user/John")
Url('https://example.com/user/John')
>>>a.join("/user/John")
Url('https://example.com/user/John')
>>>a/"user"/"John"# Similar to pathlib's __truediv__? Would be quite neat but may be too confusing?Url('https://example.com/user/John')
This would be really helpful when dealing with URLs, so you don't have to keep a track of / on your own.
Initial Checks
Description
A method to correctly join URLs:
This would be really helpful when dealing with URLs, so you don't have to keep a track of
/
on your own.Affected Components
.model_dump()
and.model_dump_json()
model_construct()
, pickling, private attributes, ORM modeThe text was updated successfully, but these errors were encountered: