diff options
author | toofar <toofar@spalge.com> | 2023-02-06 19:13:13 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2023-02-06 19:50:22 +1300 |
commit | 9ec6d449101251ada24cb0155cbf2b371a6d81ba (patch) | |
tree | 2a2d6f2c459aac636a1bbfaa5903b1de1e54e571 /qutebrowser/config | |
parent | bbaffa3e342e223e1ea8d5572eb3c3c7c6019210 (diff) | |
download | qutebrowser-9ec6d449101251ada24cb0155cbf2b371a6d81ba.tar.gz qutebrowser-9ec6d449101251ada24cb0155cbf2b371a6d81ba.zip |
lint: consider-using-augmented-assign
Not a huge fan of this suggestion. I don't think it adds anything apart
from a reliance on a language feature that isn't used much in this
codebase. I don't want to have to explain to inexperienced devs that
they have to play a bit of code golf instead of focussing on what
actually matters.
Diffstat (limited to 'qutebrowser/config')
-rw-r--r-- | qutebrowser/config/configtypes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py index 70337b848..12a21aaeb 100644 --- a/qutebrowser/config/configtypes.py +++ b/qutebrowser/config/configtypes.py @@ -1106,7 +1106,7 @@ class QtColor(BaseType): mult = 359.0 if kind == 'h' else 255.0 if val.endswith('%'): val = val[:-1] - mult = mult / 100 + mult /= 100 try: return int(float(val) * mult) |