Skip to content

Commit

Permalink
fix: extra space in repr
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Nov 2, 2023
1 parent 3b842ae commit d885c02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ape/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ def __str__(self) -> str:
return f"{self.event_name}({self._event_args_str})"

def __repr__(self) -> str:
return f"<{self.event_name} {self._event_args_str}>"
event_arg_str = self._event_args_str
suffix = f" {event_arg_str}" if event_arg_str else ""
return f"<{self.event_name}{suffix}>"

def __ape_extra_attributes__(self) -> Iterator[ExtraModelAttributes]:
yield ExtraModelAttributes(
Expand Down

0 comments on commit d885c02

Please sign in to comment.