Skip to content

Commit b6564d9

Browse files
logging.LogRecord: improve annotation for msg (#9914)
Co-authored-by: Alex Waygood <[email protected]>
1 parent dd2818a commit b6564d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/logging/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ class LogRecord:
389389
msecs: float
390390
# Only created when logging.Formatter.format is called. See #6132.
391391
message: str
392-
msg: str
392+
msg: str | Any # The runtime accepts any object, but will be a str in 99% of cases
393393
name: str
394394
pathname: str
395395
process: int | None

0 commit comments

Comments
 (0)