Small stylistic improvements to strategyresolver

This commit is contained in:
Matthias
2018-11-24 20:02:29 +01:00
parent 21a093bcdb
commit 2c0d0946e6
2 changed files with 8 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
# pragma pylint: disable=attribute-defined-outside-init
"""
This module load custom hyperopts
This module load custom objects
"""
import importlib.util
import inspect
@@ -9,10 +9,6 @@ import logging
import os
from typing import Optional, Dict, Type, Any
from freqtrade.constants import DEFAULT_HYPEROPT
from freqtrade.optimize.hyperopt_interface import IHyperOpt
logger = logging.getLogger(__name__)
@@ -51,7 +47,7 @@ class IResolver(object):
return next(valid_objects_gen, None)
@staticmethod
def _search_object(directory: str, object_type, object_name: str,
def _search_object(directory: str, object_type, object_name: str,
kwargs: dict) -> Optional[Any]:
"""
Search for the objectname in the given directory