fix str format

This commit is contained in:
onyx-and-iris 2022-10-06 16:50:00 +01:00
parent 86612a65cb
commit ad69d2cf14

View File

@ -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]