refactor: add some type hints for epic config.
This commit is contained in:
@@ -111,21 +111,21 @@ class MiningModeHPM(MinerConfigValue):
|
|||||||
class StandardPowerTuneAlgo(MinerConfigValue):
|
class StandardPowerTuneAlgo(MinerConfigValue):
|
||||||
mode: str = field(init=False, default="standard")
|
mode: str = field(init=False, default="standard")
|
||||||
|
|
||||||
def as_epic(self):
|
def as_epic(self) -> str:
|
||||||
return VOptPowerTuneAlgo().as_epic()
|
return VOptPowerTuneAlgo().as_epic()
|
||||||
|
|
||||||
|
|
||||||
class VOptPowerTuneAlgo(MinerConfigValue):
|
class VOptPowerTuneAlgo(MinerConfigValue):
|
||||||
mode: str = field(init=False, default="standard")
|
mode: str = field(init=False, default="standard")
|
||||||
|
|
||||||
def as_epic(self):
|
def as_epic(self) -> str:
|
||||||
return "VoltageOptimizer"
|
return "VoltageOptimizer"
|
||||||
|
|
||||||
|
|
||||||
class ChipTunePowerTuneAlgo(MinerConfigValue):
|
class ChipTunePowerTuneAlgo(MinerConfigValue):
|
||||||
mode: str = field(init=False, default="standard")
|
mode: str = field(init=False, default="standard")
|
||||||
|
|
||||||
def as_epic(self):
|
def as_epic(self) -> str:
|
||||||
return "ChipTune"
|
return "ChipTune"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user