]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102873: logging.LogRecord docs: improve description of `msg` parameter (#102875)
authorAmin Alaee <mohammadamin.alaee@gmail.com>
Fri, 24 Mar 2023 15:00:32 +0000 (16:00 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Mar 2023 15:00:32 +0000 (15:00 +0000)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/library/logging.rst

index 34e98fc2577003d8652b0a7f00fafdbbc2c76cb0..22412e1a2113bb8ea7362e0f08c3186d17979a5a 100644 (file)
@@ -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: typing.Any
 
    :param args: Variable data to merge into the *msg* argument
       to obtain the event description.