]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs...
authorRUANG (James Roy) <longjinyii@outlook.com>
Thu, 31 Oct 2024 01:15:07 +0000 (09:15 +0800)
committerGitHub <noreply@github.com>
Thu, 31 Oct 2024 01:15:07 +0000 (18:15 -0700)
Change documentation

Doc/library/warnings.rst

index 5ea65cbd8ca94c4da2e07f5f58c4130e36ad275b..1e7c4c8b915e7e1b80b80cddbe7ebe9c5b293906 100644 (file)
@@ -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