From: Vyron Vasileiadis Date: Wed, 22 Jul 2026 13:08:34 +0000 (+0200) Subject: gh-150076: Fix the documented signature of warnings.deprecated (#153879) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=56ad3bca75a408b45b5326980b35b8a2ba8113db;p=thirdparty%2FPython%2Fcpython.git gh-150076: Fix the documented signature of warnings.deprecated (#153879) Co-authored-by: Jelle Zijlstra --- diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index 9063bea96ccb..d5f89102d585 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -566,7 +566,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.