From a3477e07eb223217bee5b244c60e82216540008b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 25 Nov 2018 09:55:36 +0100 Subject: [PATCH] Remove constructor, it's not needed in the baseclass --- freqtrade/resolvers/iresolver.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/freqtrade/resolvers/iresolver.py b/freqtrade/resolvers/iresolver.py index 78df32e89..4bc2159fe 100644 --- a/freqtrade/resolvers/iresolver.py +++ b/freqtrade/resolvers/iresolver.py @@ -14,16 +14,9 @@ logger = logging.getLogger(__name__) class IResolver(object): """ - This class contains all the logic to load custom hyperopt class + This class contains all the logic to load custom classes """ - def __init__(self, object_type, config: Optional[Dict] = None) -> None: - """ - Load the custom class from config parameter - :param config: configuration dictionary or None - """ - config = config or {} - @staticmethod def _get_valid_objects(object_type, module_path: Path, object_name: str) -> Optional[Type[Any]]: @@ -54,7 +47,7 @@ class IResolver(object): :param directory: relative or absolute directory path :return: object instance """ - logger.debug('Searching for %s %s in \'%s\'', object_type.__name__, object_name, directory) + logger.debug('Searching for %s %s in \'%s\'', object_type.__name__, object_name, directory) for entry in directory.iterdir(): # Only consider python files if not str(entry).endswith('.py'):