https://github.com/python/cpython/commit/975911887dd767babfe06aa45e835b32c4112b51
commit: 975911887dd767babfe06aa45e835b32c4112b51
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: willingc <[email protected]>
date: 2024-10-30T18:31:35-07:00
summary:

[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) <[email protected]>

files:
M Doc/library/warnings.rst

diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
index 511b94a386d5b9..0cd3ca3c9de73f 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 
<warning-categories>`; it

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to