]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warning...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 31 Oct 2024 01:31:35 +0000 (02:31 +0100)
committerGitHub <noreply@github.com>
Thu, 31 Oct 2024 01:31:35 +0000 (18:31 -0700)
gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs (GH-125823)

Change documentation
(cherry picked from commit d467d9246cbe0ce5dc149c4c74223bb8374ece73)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Doc/library/warnings.rst

index 511b94a386d5b9a0571d37b536b0db7695955ea4..0cd3ca3c9de73f20740f22dac49d273ff5b199e9 100644 (file)
@@ -396,7 +396,7 @@ Available Functions
 -------------------
 
 
-.. function:: warn(message, category=None, stacklevel=1, source=None, *, skip_file_prefixes=None)
+.. function:: warn(message, category=None, stacklevel=1, source=None, *, skip_file_prefixes=())
 
    Issue a warning, or maybe ignore it or raise an exception.  The *category*
    argument, if given, must be a :ref:`warning category class <warning-categories>`; it