From d467d9246cbe0ce5dc149c4c74223bb8374ece73 Mon Sep 17 00:00:00 2001 From: "RUANG (James Roy)" Date: Thu, 31 Oct 2024 09:15:07 +0800 Subject: [PATCH] gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs (GH-125823) Change documentation --- Doc/library/warnings.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index 5ea65cbd8ca..1e7c4c8b915 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 `; it