]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Jul 2026 13:15:40 +0000 (15:15 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 13:15:40 +0000 (13:15 +0000)
gh-150076: Fix the documented signature of warnings.deprecated (GH-153879)
(cherry picked from commit 56ad3bca75a408b45b5326980b35b8a2ba8113db)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/warnings.rst

index 93832e8faa37e45b9f48f47c55d087483fea92f3..7bcdb3adc0cf36e9500af62cc76563314f86dc1c 100644 (file)
@@ -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.