From d8689e504517f67d39f79df8706a0dbb14f933e1 Mon Sep 17 00:00:00 2001 From: gcarq Date: Sat, 17 Mar 2018 22:43:59 +0100 Subject: [PATCH] set correct typehint; remove unused argument --- freqtrade/configuration.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/configuration.py b/freqtrade/configuration.py index fd9872eb3..10ac783e6 100644 --- a/freqtrade/configuration.py +++ b/freqtrade/configuration.py @@ -3,8 +3,9 @@ This module contains the configuration class """ import json +from argparse import Namespace -from typing import Dict, List, Any +from typing import Dict, Any from jsonschema import Draft4Validator, validate from jsonschema.exceptions import ValidationError, best_match @@ -17,7 +18,7 @@ class Configuration(object): Class to read and init the bot configuration Reuse this class for the bot, backtesting, hyperopt and every script that required configuration """ - def __init__(self, args: List[str], do_not_init=False) -> None: + def __init__(self, args: Namespace) -> None: self.args = args self.logging = Logger(name=__name__) self.logger = self.logging.get_logger()