From aa3da092a0262a1efbf6387fbcadc928b5b04306 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 20 Aug 2022 10:55:52 +0200 Subject: [PATCH] Dont' use classProperty - that's not supported on 3.8 --- freqtrade/optimize/hyperopt_tools.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/freqtrade/optimize/hyperopt_tools.py b/freqtrade/optimize/hyperopt_tools.py index 7f339eec1..9b022d519 100755 --- a/freqtrade/optimize/hyperopt_tools.py +++ b/freqtrade/optimize/hyperopt_tools.py @@ -35,16 +35,11 @@ def hyperopt_serializer(x): class HyperoptStateContainer(): """ Singleton class to track state of hyperopt""" - __state = HyperoptState.OPTIMIZE + state: HyperoptState = HyperoptState.OPTIMIZE @classmethod def set_state(cls, value: HyperoptState): - cls.__state = value - - @classmethod - @property - def state(cls) -> HyperoptState: - return cls.__state + cls.state = value class HyperoptTools():