Skip to content

Commit

Permalink
ruff: f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jvansanten committed Dec 5, 2024
1 parent 1837ece commit 7123c8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ampel/view/SnapView.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ def _get_time(cls,


def content_summary(self) -> str:
return 'DP: %i, CP: %i, T2: %i' % (
len(self.t0) if self.t0 else 0,
len(self.t1) if self.t1 else 0,
len(self.t2) if self.t2 else 0
return (
f'DP: {len(self.t0) if self.t0 else 0}'
f', CP: {len(self.t1) if self.t1 else 0}'
f', T2: {len(self.t2) if self.t2 else 0}'
)

0 comments on commit 7123c8a

Please sign in to comment.