Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions stdlib/logging/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class Logger(Filterer):
lno: int,
msg: object,
args: _ArgsType,
exc_info: _SysExcInfoType | None,
exc_info: _SysExcInfoType | Literal[False] | None,
func: str | None = None,
extra: Mapping[str, object] | None = None,
sinfo: str | None = None,
Expand Down Expand Up @@ -312,7 +312,9 @@ class LogRecord:
args: _ArgsType | None
asctime: str
created: float
exc_info: _SysExcInfoType | None
# Logger._log() only normalizes truthy exc_info values so
# exc_info=False ends up on the record unchanged.
exc_info: _SysExcInfoType | Literal[False] | None
exc_text: str | None
filename: str
funcName: str
Expand Down Expand Up @@ -343,7 +345,7 @@ class LogRecord:
lineno: int,
msg: object,
args: _ArgsType | None,
exc_info: _SysExcInfoType | None,
exc_info: _SysExcInfoType | Literal[False] | None,
func: str | None = None,
sinfo: str | None = None,
) -> None: ...
Expand Down
Loading