fix str format

This commit is contained in:
onyx-and-iris 2022-10-06 16:50:03 +01:00
parent 0c60fe3d5e
commit 2f82e0b1fc

View File

@ -24,7 +24,7 @@ class Event:
@pdirty.setter @pdirty.setter
def pdirty(self, val: bool): def pdirty(self, val: bool):
self.subs["pdirty"] = val 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 @property
def ldirty(self) -> bool: def ldirty(self) -> bool:
@ -33,7 +33,7 @@ class Event:
@ldirty.setter @ldirty.setter
def ldirty(self, val: bool): def ldirty(self, val: bool):
self.subs["ldirty"] = val 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: def get(self) -> list:
return [k for k, v in self.subs.items() if v] return [k for k, v in self.subs.items() if v]