yarl icon indicating copy to clipboard operation
yarl copied to clipboard

Fix update_query(None) doesn't clear the query

Open slymit opened this issue 2 years ago • 0 comments

What do these changes do?

This fix bug when method url.update_query(None) doesn't clear the query.

Are there changes in behavior for the user?

This changes clear the query if None is passed to method update_query().

Related issue number

#723

Checklist

  • [x] I think the code is well written
  • [x] Unit tests for the changes exist
  • [x] Documentation reflects the changes
  • [x] Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> (e.g. 588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the PR
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: Fix issue with non-ascii contents in doctest text files.

slymit avatar Jun 11 '22 10:06 slymit