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))
|
||||
|
||||
@classmethod
|
||||
def from_inno(cls, web_pools: dict):
|
||||
def from_inno(cls, web_pools: list):
|
||||
return cls(pools=PoolConfig.from_inno(web_pools))
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -29,6 +29,8 @@ class PowerScalingShutdownEnabled(MinerConfigValue):
|
||||
if self.duration is not None:
|
||||
cfg["shutdown_duration"] = self.duration
|
||||
|
||||
return cfg
|
||||
|
||||
|
||||
@dataclass
|
||||
class PowerScalingShutdownDisabled(MinerConfigValue):
|
||||
|
||||
Reference in New Issue
Block a user