miner_factory returns a miner of the type intended

This commit is contained in:
UpstreamData
2021-10-07 16:38:05 -06:00
parent 4778aa957b
commit a0e88490c6
7 changed files with 123 additions and 9 deletions

View File

@@ -7,4 +7,4 @@ import ipaddress
class BaseMiner:
def __init__(self, ip: str, api: BOSMinerAPI or CGMinerAPI or BMMinerAPI):
self.ip = ipaddress.ip_address(ip)
self.api = api
self.api = api