1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #36477, Refs #36163 -- Added @deprecate_posargs decorator to simplify deprecation of positional arguments.

This helper allows marking positional-or-keyword parameters as keyword-only with a deprecation period, in a consistent and correct manner.
This commit is contained in:
Mike Edmunds
2025-07-16 04:49:03 -07:00
committed by GitHub
parent 10386fac00
commit f42b89f1bf
3 changed files with 589 additions and 0 deletions

View File

@@ -312,6 +312,11 @@ Once you have completed these steps, you are finished with the deprecation.
In each :term:`feature release <Feature release>`, all
``RemovedInDjangoXXWarning``\s matching the new version are removed.
The ``django.utils.deprecation`` module provides some helpful deprecation
utilities, such as a ``@deprecate_posargs`` decorator to assist with converting
positional-or-keyword arguments to keyword-only. See the inline documentation
in the module source.
JavaScript contributions
========================