Dont' use classProperty - that's not supported on 3.8
This commit is contained in:
parent
665cf4431d
commit
aa3da092a0
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user