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:
Ilya Konstantinov
2018-05-21 08:27:16 -07:00
committed by Jelle Zijlstra
parent 709b193416
commit 128a49a32d

View File

@@ -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]] = ...,