summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRUANG (James Roy) <longjinyii@outlook.com>2024-10-31 01:15:07 (GMT)
committerGitHub <noreply@github.com>2024-10-31 01:15:07 (GMT)
commitd467d9246cbe0ce5dc149c4c74223bb8374ece73 (patch)
treeb17f346b9158e02493b610a40bd7e6799b2fab89 /Doc
parentb3122aa6132de263f389317efe9dcf2b14c6b393 (diff)
downloadcpython-d467d9246cbe0ce5dc149c4c74223bb8374ece73.zip
cpython-d467d9246cbe0ce5dc149c4c74223bb8374ece73.tar.gz
cpython-d467d9246cbe0ce5dc149c4c74223bb8374ece73.tar.bz2
gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs (GH-125823)
Change documentation
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/warnings.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
index 5ea65cb..1e7c4c8 100644
--- a/Doc/library/warnings.rst
+++ b/Doc/library/warnings.rst
@@ -398,7 +398,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