set correct typehint; remove unused argument
This commit is contained in:
parent
5327533188
commit
d8689e5045
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user