def clear(self) -> None:
    self.events_prev = {k: ((v + 1) if (k in self.events) else 0) for (k, v) in self.events_prev.items()}
    self.events = self.static_events.copy()
def clear(self) -> None:
    self.events_prev = {k: ((v + 1) if (k in self.events) else 0) for (k, v) in self.events_prev.items()}
    self.events = self.static_events.copy()