From 12fa5542b114b5e1c349b605da5f6288af17f036 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 9 Nov 2018 01:52:57 -0500 Subject: [PATCH] Oh, mypy... --- tractor/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/log.py b/tractor/log.py index f8c8d1b..9433e93 100644 --- a/tractor/log.py +++ b/tractor/log.py @@ -76,8 +76,8 @@ def get_console_log(level: str = None, name: str = None) -> logging.Logger: log.setLevel(level.upper() if not isinstance(level, int) else level) if not any( - handler.stream == sys.stderr for handler in log.handlers - if getattr(handler, 'stream', None) + handler.stream == sys.stderr # type: ignore + for handler in log.handlers if getattr(handler, 'stream', None) ): handler = logging.StreamHandler() formatter = colorlog.ColoredFormatter(