]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-150076: Fix the documented signature of warnings.deprecated (#153879)
authorVyron Vasileiadis <hi@fedonman.com>
Wed, 22 Jul 2026 13:08:34 +0000 (15:08 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 13:08:34 +0000 (07:08 -0600)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/warnings.rst

index 9063bea96ccb0ac37703d55cd7f5025266067787..d5f89102d5853bb593db28ed0bec393e30e94489 100644 (file)
@@ -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.