mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Fix LoggerAdapter.process first argument (#2153)
Standard implementation is:
```
def process(self, msg, kwargs):
kwargs["extra"] = self.extra
return msg, kwargs
```
so the signature is clearly `(Text, ...) -> (Text, ...)` (or `(str, ...) -> (str, ...)`, but following the other stubs here, I gather it's `Text`).
This commit is contained in:
committed by
Jelle Zijlstra
parent
709b193416
commit
128a49a32d
@@ -226,7 +226,7 @@ class LogRecord:
|
||||
|
||||
class LoggerAdapter:
|
||||
def __init__(self, logger: Logger, extra: Mapping[str, Any]) -> None: ...
|
||||
def process(self, msg: Text, kwargs: MutableMapping[str, Any]) -> Tuple[str, MutableMapping[str, Any]]: ...
|
||||
def process(self, msg: Text, kwargs: MutableMapping[str, Any]) -> Tuple[Text, MutableMapping[str, Any]]: ...
|
||||
if sys.version_info >= (3,):
|
||||
def debug(self, msg: Text, *args: Any, exc_info: _ExcInfoType = ...,
|
||||
stack_info: bool = ..., extra: Optional[Dict[str, Any]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user