mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 02:41:16 +08:00
Add __setattr__ to logging.LogRecord (#8064)
This commit is contained in:
@@ -413,6 +413,8 @@ class LogRecord:
|
||||
sinfo: str | None = ...,
|
||||
) -> None: ...
|
||||
def getMessage(self) -> str: ...
|
||||
# Allows setting contextual information on LogRecord objects as per the docs, see #7833
|
||||
def __setattr__(self, __name: str, __value: Any) -> None: ...
|
||||
|
||||
_L = TypeVar("_L", bound=Logger | LoggerAdapter[Any])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user