From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 31 Oct 2024 01:31:35 +0000 (+0100) Subject: [3.12] gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warning... X-Git-Tag: v3.12.8~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=975911887dd767babfe06aa45e835b32c4112b51;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs (GH-125823) (GH-126217) 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) --- diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index 511b94a386d5..0cd3ca3c9de7 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -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 `; it