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

View File

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