From 6fd4e67a5d5259cfbc09ce3a54de04162b666844 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Wed, 15 May 2019 13:43:04 +0300 Subject: [PATCH] make flake8 happy --- freqtrade/optimize/hyperopt_interface.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/freqtrade/optimize/hyperopt_interface.py b/freqtrade/optimize/hyperopt_interface.py index 9f2dac339..69672200a 100644 --- a/freqtrade/optimize/hyperopt_interface.py +++ b/freqtrade/optimize/hyperopt_interface.py @@ -2,7 +2,6 @@ IHyperOpt interface This module defines the interface to apply for hyperopts """ - from abc import ABC, abstractmethod from typing import Dict, Any, Callable, List @@ -30,11 +29,15 @@ from pandas import DataFrame # where it will probably be eliminated... # import warnings + + def warn(*args, **kwargs): pass + + old_warn = warnings.showwarning warnings.showwarning = warn -from skopt.space import Categorical, Dimension, Integer, Real +from skopt.space import Categorical, Dimension, Integer, Real # noqa: F401 warnings.showwarning = old_warn