]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] 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:16:15 +0000 (15:16 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 13:16:15 +0000 (13:16 +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 b04302821e0a2af668d7d12b32fe111596620184..18f3dd4a14583e2ff180a7b51e379d17457588bc 100644 (file)
@@ -551,7 +551,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.