From 99270b11679a344879658a01363fd7904903f2be Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 15:59:10 +0000 Subject: [PATCH] Iterate dictionary directly --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index cfbb70ca..5f622715 100644 --- a/src/main.py +++ b/src/main.py @@ -307,7 +307,7 @@ class GradienceApplication(Adw.Application): "scrollbar_outline_color": self.rgba_from_argb(light_theme.outline), } - for key in variable.keys(): + for key in variable: if key in self.pref_variables: self.pref_variables[key].update_value(variable[key])