From 8acd0b1385df50c669990fb0a9a8053d48a542ed Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 20 Jul 2023 11:11:34 +0100 Subject: [PATCH] add missing type annotations --- voicemeeterlib/macrobutton.py | 6 +++--- voicemeeterlib/strip.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/voicemeeterlib/macrobutton.py b/voicemeeterlib/macrobutton.py index 468673d..6b8b513 100644 --- a/voicemeeterlib/macrobutton.py +++ b/voicemeeterlib/macrobutton.py @@ -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) diff --git a/voicemeeterlib/strip.py b/voicemeeterlib/strip.py index 4ec34cc..edcbe62 100644 --- a/voicemeeterlib/strip.py +++ b/voicemeeterlib/strip.py @@ -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