New submission from Michal Plichta :
my code:
logger = logging.getLogger(name)
logger.setLevel(level=logging.DEBUG)
...
stream_handler = logging.StreamHandler(stream=stdout)
stream_handler.setLevel(logging_level)
stream_handler.setFormatter(fmt=formatter)
and mypy-0.550 complains about fmt vs
Michal Plichta added the comment:
see at typeshed:
https://github.com/python/typeshed/blob/master/stdlib/2and3/logging/__init__.pyi#L147
def setLevel(self, lvl: Union[int, str]) -> None: ...
def setFormatter(self, form: 'Formatter') -> None: ...
this match pyth
Michal Plichta added the comment:
Nice, btw maybe other parameters in logging's docs needs to be corrected.
--
___
Python tracker
<https://bugs.python.org/is