bug: fix some issues with return types and missing return statements.
This commit is contained in:
@@ -116,7 +116,7 @@ class MinerConfig:
|
|||||||
return cls(pools=PoolConfig.from_am_modern(web_conf))
|
return cls(pools=PoolConfig.from_am_modern(web_conf))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_inno(cls, web_pools: dict):
|
def from_inno(cls, web_pools: list):
|
||||||
return cls(pools=PoolConfig.from_inno(web_pools))
|
return cls(pools=PoolConfig.from_inno(web_pools))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ class PowerScalingShutdownEnabled(MinerConfigValue):
|
|||||||
if self.duration is not None:
|
if self.duration is not None:
|
||||||
cfg["shutdown_duration"] = self.duration
|
cfg["shutdown_duration"] = self.duration
|
||||||
|
|
||||||
|
return cfg
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class PowerScalingShutdownDisabled(MinerConfigValue):
|
class PowerScalingShutdownDisabled(MinerConfigValue):
|
||||||
|
|||||||
Reference in New Issue
Block a user