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
|
||||
|
||||
@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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user