style: format linter adjustments in io.py for better readability

This commit is contained in:
Paul Gauthier (aider) 2024-09-27 19:44:23 -07:00
parent c5fb25eec3
commit fd9dc9e8d2

View file

@ -256,12 +256,16 @@ class InputOutput:
style_dict = {}
if self.pretty and self.user_input_color:
style_dict.setdefault("", self.user_input_color)
style_dict.update({
"completion-menu": f"bg:{self.completion_menu_bg_color} {self.completion_menu_color}",
"completion-menu.completion.current": (
f"bg:{self.completion_menu_current_bg_color} {self.completion_menu_current_color}"
),
})
style_dict.update(
{
"completion-menu": (
f"bg:{self.completion_menu_bg_color} {self.completion_menu_color}"
),
"completion-menu.completion.current": (
f"bg:{self.completion_menu_current_bg_color} {self.completion_menu_current_color}"
),
}
)
return Style.from_dict(style_dict)
else:
return {}