remove redundant import

fix docstrings to match new package name
This commit is contained in:
onyx-and-iris 2022-08-08 00:13:14 +01:00
parent a45a57d1e4
commit c159812fe3

View File

@ -1,7 +1,6 @@
import abc import abc
import threading import threading
import time import time
from configparser import ConfigParser
from pathlib import Path from pathlib import Path
from typing import Optional, Self from typing import Optional, Self
@ -42,7 +41,7 @@ class OSCClientServer(BlockingOSCUDPServer):
class XAirRemote(abc.ABC): class XAirRemote(abc.ABC):
"""Handles the communication with the M-Air mixer via the OSC protocol""" """Handles the communication with the mixer via the OSC protocol"""
_CONNECT_TIMEOUT = 0.5 _CONNECT_TIMEOUT = 0.5
_WAIT_TIME = 0.025 _WAIT_TIME = 0.025
@ -104,7 +103,7 @@ class XAirRemote(abc.ABC):
def _make_remote(kind: KindMap) -> XAirRemote: def _make_remote(kind: KindMap) -> XAirRemote:
""" """
Creates a new MAIR remote class. Creates a new XAIR remote class.
The returned class will subclass MAirRemote. The returned class will subclass MAirRemote.
""" """
@ -125,7 +124,7 @@ def _make_remote(kind: KindMap) -> XAirRemote:
self.rtn = tuple(Rtn.make(self, i) for i in range(kind.num_rtn)) self.rtn = tuple(Rtn.make(self, i) for i in range(kind.num_rtn))
return type( return type(
f"MAirRemote{kind}", f"XAirRemote{kind}",
(XAirRemote,), (XAirRemote,),
{ {
"__init__": init, "__init__": init,
@ -142,9 +141,9 @@ def request_remote_obj(kind_id: str, *args, **kwargs) -> XAirRemote:
Returns a reference to an XAirRemote class of a kind Returns a reference to an XAirRemote class of a kind
""" """
MAIRREMOTE_cls = None XAIRREMOTE_cls = None
try: try:
MAIRREMOTE_cls = _remotes[kind_id] XAIRREMOTE_cls = _remotes[kind_id]
except ValueError as e: except ValueError as e:
raise SystemExit(e) raise SystemExit(e)
return MAIRREMOTE_cls(*args, **kwargs) return XAIRREMOTE_cls(*args, **kwargs)