Skip to content

Commit

Permalink
Fix ruff complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoliaw committed Jul 18, 2024
1 parent 022d6e3 commit bd82a01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blueapi/cli/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def display_full(obj: Any, stream: Stream):
case ProgressEvent():
print(f"Progress:{fmt_dict(obj.dict())}")
case BaseModel():
print(obj.__class__.__name__, end='')
print(obj.__class__.__name__, end="")
print(fmt_dict(obj.dict()))
case other:
FALLBACK(other, stream=stream)
Expand Down Expand Up @@ -108,7 +108,7 @@ def display_compact(obj: Any, stream: Stream):
case WorkerEvent(state=state):
print(f"Worker state: {state}")
case ProgressEvent(statuses=stats):
prog = max(100 * (s.percentage or 0) for s in stats.values()) or "???"
prog = max(100 * (s.percentage or 0) for s in stats.values()) or "???"
print(f"Progress: {prog}%")
case other:
FALLBACK(other, stream=stream)
Expand Down

0 comments on commit bd82a01

Please sign in to comment.