Bump pyupgrade to 2.12.0 (#48943)
This commit is contained in:
parent
ee0c87df1c
commit
8e2b5b36b5
45 changed files with 94 additions and 95 deletions
|
@ -37,7 +37,7 @@ def test_battery_icon():
|
|||
else:
|
||||
postfix_charging = "-charging-100"
|
||||
if 5 < level < 95:
|
||||
postfix = "-{}".format(int(round(level / 10 - 0.01)) * 10)
|
||||
postfix = f"-{int(round(level / 10 - 0.01)) * 10}"
|
||||
elif level <= 5:
|
||||
postfix = "-alert"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue