add missing type annotations

This commit is contained in:
onyx-and-iris 2023-07-20 11:11:34 +01:00
parent 89866bb87b
commit 8acd0b1385
2 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ class MacroButton(Adapter):
return self.getter(1) == 1
@state.setter
def state(self, val):
def state(self, val: bool):
self.setter(1 if val else 0, 1)
@property
@ -33,7 +33,7 @@ class MacroButton(Adapter):
return self.getter(2) == 1
@stateonly.setter
def stateonly(self, val):
def stateonly(self, val: bool):
self.setter(1 if val else 0, 2)
@property
@ -41,5 +41,5 @@ class MacroButton(Adapter):
return self.getter(3) == 1
@trigger.setter
def trigger(self, val):
def trigger(self, val: bool):
self.setter(1 if val else 0, 3)

View File

@ -364,7 +364,7 @@ class VirtualStrip(Strip):
self.setter("karaoke", val)
@property
def bass(self):
def bass(self) -> float:
return round(self.getter("EQGain1"), 1)
@bass.setter
@ -372,7 +372,7 @@ class VirtualStrip(Strip):
self.setter("EQGain1", val)
@property
def mid(self):
def mid(self) -> float:
return round(self.getter("EQGain2"), 1)
@mid.setter
@ -382,7 +382,7 @@ class VirtualStrip(Strip):
med = mid
@property
def treble(self):
def treble(self) -> float:
return round(self.getter("EQGain3"), 1)
high = treble