bug: fix an issue with incorrect type hinting.

This commit is contained in:
UpstreamData
2022-11-29 09:36:24 -07:00
parent acc18e20fd
commit 35f34310ec

View File

@@ -399,7 +399,7 @@ class MinerConfig:
""" """
return self.from_dict(yaml.load(data, Loader=yaml.SafeLoader)) return self.from_dict(yaml.load(data, Loader=yaml.SafeLoader))
def as_wm(self, user_suffix: str = None) -> Dict[str: List[dict], str: int]: def as_wm(self, user_suffix: str = None) -> Dict[str, int]:
"""Convert the data in this class to a config usable by a Whatsminer device. """Convert the data in this class to a config usable by a Whatsminer device.
Parameters: Parameters: