Skip to content

Commit

Permalink
pythongh-125818: Fix incorrect signature of argument `skip_file_prefi…
Browse files Browse the repository at this point in the history
…xes` in warnings docs (pythonGH-125823)

Change documentation
(cherry picked from commit d467d92)

Co-authored-by: RUANG (James Roy) <[email protected]>
  • Loading branch information
rruuaanng authored and miss-islington committed Oct 31, 2024
1 parent 6bfe5fb commit ca97b49
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 ca97b49

Please sign in to comment.