Skip to content

Commit

Permalink
[3.13] pythongh-125818: Fix incorrect signature of argument `skip_fil…
Browse files Browse the repository at this point in the history
…e_prefixes` in warnings docs (pythonGH-125823) (python#126216)

pythongh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs (pythonGH-125823)

Change documentation
(cherry picked from commit d467d92)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
  • Loading branch information
miss-islington and rruuaanng authored Oct 31, 2024
1 parent 2db2b5e commit 57668a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/warnings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57668a4

Please sign in to comment.