From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 22 Jul 2026 13:15:40 +0000 (+0200) Subject: [3.13] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=553e3b0be8ce80659bc66439954f40537d2ad6e3;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879) (#154489) gh-150076: Fix the documented signature of warnings.deprecated (GH-153879) (cherry picked from commit 56ad3bca75a408b45b5326980b35b8a2ba8113db) Co-authored-by: Vyron Vasileiadis Co-authored-by: Jelle Zijlstra --- diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index 93832e8faa37..7bcdb3adc0cf 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -544,7 +544,7 @@ Available Functions and calls to :func:`simplefilter`. -.. decorator:: deprecated(msg, *, category=DeprecationWarning, stacklevel=1) +.. decorator:: deprecated(message, /, *, category=DeprecationWarning, stacklevel=1) Decorator to indicate that a class, function or overload is deprecated.