Skip to content

Commit

Permalink
QA: Apply ruff suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jun 13, 2024
1 parent dabc783 commit 131d027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def draw_info(self, x, y, color, label, data, desc, right=False, vmin=0, vmax=20
vmax = max(vmax, max([h.value for h in data])) # auto ranging?
self.graph(data, x + o_x + 30, y + 20, 180, 64, vmin=vmin, vmax=vmax, bar_width=20, colors=[color])
else:
if type(data) is list:
if isinstance(data, list):
if len(data) > 0:
data = data[-1].value
else:
Expand Down

0 comments on commit 131d027

Please sign in to comment.