Skip to content

Commit

Permalink
Add documentation about without_query_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hongquan committed Aug 30, 2023
1 parent 7adaed1 commit 49c3b82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/898.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add `without_query_keys` method.
6 changes: 6 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,12 @@ section generates a new :class:`URL` instance.
Support subclasses of :class:`int` (except :class:`bool`) and :class:`float`
as a query parameter value.

.. method:: URL.without_query_keys(*keys)

Return a new URL whose *query* part does not contain specified keys.

It does nothing if none of specified keys are present in the query.

.. method:: URL.with_fragment(fragment)

Return a new URL with *fragment* replaced, auto-encode *fragment* if needed.
Expand Down

0 comments on commit 49c3b82

Please sign in to comment.