upd __init__ methods

This commit is contained in:
onyx-and-iris 2024-02-08 17:41:56 +00:00
parent 56ec9a17c0
commit e9ef113b5c

View File

@ -467,10 +467,7 @@ class EQ:
class EQBand: class EQBand:
def __init__(self, i, remote, index): def __init__(self, i, remote, index):
if index is None: super(EQ.EQBand, self).__init__(remote, index)
super(EQ.EQBand, self).__init__(remote)
else:
super(EQ.EQBand, self).__init__(remote, index)
self.i = i self.i = i
@property @property
@ -629,9 +626,7 @@ class Automix:
class Send: class Send:
def __init__(self, remote, i, index: Optional[int] = None): def __init__(self, remote, i, index: Optional[int] = None):
self._remote = remote super(Send, self).__init__(remote, index)
if index is not None:
self.index = index + 1
self.i = i + 1 self.i = i + 1
@classmethod @classmethod