Correctly add types

This commit is contained in:
Matthias 2019-03-29 20:16:41 +01:00
parent bb5a310aec
commit d4ffdaffc2
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import os
import sys
from argparse import Namespace
from logging.handlers import RotatingFileHandler
from typing import Any, Dict, Optional
from typing import Any, Dict, List, Optional
import ccxt
from jsonschema import Draft4Validator, validate
@ -120,7 +120,7 @@ class Configuration(object):
config.update({'verbosity': 0})
# Log to stdout, not stderr
log_handlers = [logging.StreamHandler(sys.stdout)]
log_handlers: List[logging.Handler] = [logging.StreamHandler(sys.stdout)]
if 'logfile' in self.args and self.args.logfile:
config.update({'logfile': self.args.logfile})