From b6564d976b336ddff962870092ac873a60dfa9b2 Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Tue, 21 Mar 2023 16:40:37 +0100 Subject: [PATCH] `logging.LogRecord`: improve annotation for `msg` (#9914) Co-authored-by: Alex Waygood --- stdlib/logging/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/logging/__init__.pyi b/stdlib/logging/__init__.pyi index 3c547a6e0..938410ae6 100644 --- a/stdlib/logging/__init__.pyi +++ b/stdlib/logging/__init__.pyi @@ -389,7 +389,7 @@ class LogRecord: msecs: float # Only created when logging.Formatter.format is called. See #6132. message: str - msg: str + msg: str | Any # The runtime accepts any object, but will be a str in 99% of cases name: str pathname: str process: int | None