logging.LogRecord: improve annotation for msg (#9914)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Amin Alaee
2023-03-21 16:40:37 +01:00
committed by GitHub
parent dd2818a41d
commit b6564d976b

View File

@@ -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