mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
@@ -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
|
||||
========================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user