Skip to content

Commit

Permalink
add docstring changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Oct 31, 2024
1 parent 1735b75 commit 564835a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/werkzeug/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ class MisdirectedRequest(HTTPException):
Indicates that the request was directed to a server that is not able to
produce a response.
.. versionadded:: 3.1
"""

code = 421
Expand Down
3 changes: 3 additions & 0 deletions src/werkzeug/sansio/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ def set_cookie(
:param samesite: Limit the scope of the cookie to only be
attached to requests that are "same-site".
:param partitioned: If ``True``, the cookie will be partitioned.
.. versionchanged:: 3.1
The ``partitioned`` parameter was added.
"""
self.headers.add(
"Set-Cookie",
Expand Down
3 changes: 3 additions & 0 deletions src/werkzeug/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def generate_password_hash(
:param method: The key derivation function and parameters.
:param salt_length: The number of characters to generate for the salt.
.. versionchanged:: 3.1
The default iterations for pbkdf2 was increased to 1,000,000.
.. versionchanged:: 2.3
Scrypt support was added.
Expand Down

0 comments on commit 564835a

Please sign in to comment.