added comments and docstrings to some files

This commit is contained in:
Dellsauce
2021-11-03 14:39:28 -07:00
parent da8d45a9b1
commit 2b61c042b8
3 changed files with 20 additions and 2 deletions

View File

@@ -1,10 +1,11 @@
from API.bmminer import BMMinerAPI
from API.bosminer import BOSMinerAPI
from API.cgminer import CGMinerAPI
from API.unknown import UnknownAPI
import ipaddress
class BaseMiner:
def __init__(self, ip: str, api: BMMinerAPI or BOSMinerAPI or CGMinerAPI) -> None:
def __init__(self, ip: str, api: BMMinerAPI or BOSMinerAPI or CGMinerAPI or UnknownAPI) -> None:
self.ip = ipaddress.ip_address(ip)
self.api = api