-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow replacing path without replacing query or fragment (#1421)
* Add keep_query and keep_fragment arguments to with_path * Add changelog entries * One line to make it more readable * Update changelog message * Update changelog message to pass lint * Add test to cover arguments false. Rename flags * Update 111.bugfix.rst * changelog * symlink * Update documentation with new flags * Add versionadded * Update docs/api.rst Co-authored-by: Andrew Svetlov <[email protected]> * Update docs/api.rst * Add flags to with_path and with_suffix * Add documentation * Update changelog * Rewrite tests to use parametrize * Update docs. Add required named params to method defition * Update tests * Update CHANGES/1421.feature.rst Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]> * Update docs/api.rst Co-authored-by: Andrew Svetlov <[email protected]> * Update docs/api.rst Co-authored-by: Andrew Svetlov <[email protected]> * Update docs/api.rst Co-authored-by: Andrew Svetlov <[email protected]> --------- Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: Andrew Svetlov <[email protected]> Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
- Loading branch information
1 parent
2b94725
commit fc08cb8
Showing
5 changed files
with
178 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1421.feature.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added ``keep_query`` and ``keep_fragment`` flags in the :py:meth:`yarl.URL.with_path`, :py:meth:`yarl.URL.with_name` and :py:meth:`yarl.URL.with_suffix` methods, allowing users to optionally retain the query string and fragment in the resulting URL when replacing the path -- by :user:`paul-nameless`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters