From 68747941af5b9ed9eec0ff473cbd00f4ee644170 Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Tue, 21 Mar 2023 17:10:22 +0100 Subject: [PATCH 1/2] gh-102873: Update logging LogRecord argument types --- Doc/library/logging.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 34e98fc2577003..028f74af45774c 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -813,8 +813,9 @@ wire). :type lineno: int :param msg: The event description message, - which can be a %-format string with placeholders for variable data. - :type msg: str + which can be a %-format string with placeholders for variable data, + or an arbitrary object (see :ref:`arbitrary-object-messages`). + :type msg: str | Any :param args: Variable data to merge into the *msg* argument to obtain the event description. From e9333d211f2ecb63edad93f4cf644f9fe0797313 Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Tue, 21 Mar 2023 17:27:40 +0100 Subject: [PATCH 2/2] Update Doc/library/logging.rst Co-authored-by: Alex Waygood --- Doc/library/logging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 028f74af45774c..22412e1a2113bb 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -815,7 +815,7 @@ wire). :param msg: The event description message, which can be a %-format string with placeholders for variable data, or an arbitrary object (see :ref:`arbitrary-object-messages`). - :type msg: str | Any + :type msg: typing.Any :param args: Variable data to merge into the *msg* argument to obtain the event description.