Skip to content

Commit

Permalink
chore(core): ModifyDetail.__repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Jan 13, 2024
1 parent 966bd77 commit 6249561
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions avilla/core/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,7 @@ class ModifyDetail:
previous: Any = None

def __repr__(self):
if self.type == "set":
return f"Set to {self.current!r}"
if self.type == "clear":
return f"Clear from {self.previous!r}"
if self.type == "update":
return f"Update from {self.previous!r} to {self.current!r}"
return "..."
return f"ModifyDetail({self.previous!r} -> {self.current!r})"


@dataclass
Expand Down

0 comments on commit 6249561

Please sign in to comment.