From ad69d2cf14fd54c84ee489a051157f51e0059bbc Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 6 Oct 2022 16:50:00 +0100 Subject: [PATCH] fix str format --- voicemeeterlib/event.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/voicemeeterlib/event.py b/voicemeeterlib/event.py index 6e9da2d..799ce29 100644 --- a/voicemeeterlib/event.py +++ b/voicemeeterlib/event.py @@ -24,7 +24,7 @@ class Event: @pdirty.setter def pdirty(self, val: bool): self.subs["pdirty"] = val - self.info(f"pdirty {'added to' if val else {'removed from'}}") + self.info(f"pdirty {'added to' if val else 'removed from'}") @property def mdirty(self) -> bool: @@ -33,7 +33,7 @@ class Event: @mdirty.setter def mdirty(self, val: bool): self.subs["mdirty"] = val - self.info(f"mdirty {'added to' if val else {'removed from'}}") + self.info(f"mdirty {'added to' if val else 'removed from'}") @property def midi(self) -> bool: @@ -42,7 +42,7 @@ class Event: @midi.setter def midi(self, val: bool): self.subs["midi"] = val - self.info(f"midi {'added to' if val else {'removed from'}}") + self.info(f"midi {'added to' if val else 'removed from'}") @property def ldirty(self) -> bool: @@ -51,7 +51,7 @@ class Event: @ldirty.setter def ldirty(self, val: bool): self.subs["ldirty"] = val - self.info(f"ldirty {'added to' if val else {'removed from'}}") + self.info(f"ldirty {'added to' if val else 'removed from'}") def get(self) -> list: return [k for k, v in self.subs.items() if v]