mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-15 16:40:46 +00:00
add missing type annotations
This commit is contained in:
parent
89866bb87b
commit
8acd0b1385
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user