]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102873: logging.LogRecord docs: improve description of `msg` parameter (GH-102875)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Mar 2023 15:08:48 +0000 (08:08 -0700)
committerGitHub <noreply@github.com>
Fri, 24 Mar 2023 15:08:48 +0000 (08:08 -0700)
(cherry picked from commit f2e5a6ee628502d307a97f587788d7022a200229)

Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/library/logging.rst

index 9390f065fb26902c8661e3e90a0efdc9c61ab86f..6c47b9e206c4ff8d3171271d3bdf6150489b2fc4 100644 (file)
@@ -796,8 +796,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.