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

This commit is contained in:
Paul Gauthier (aider) 2024-09-27 19:43:16 -07:00
parent bff1b3de9c
commit 0a558682d8

View file

@ -258,12 +258,16 @@ class InputOutput:
else: else:
style_dict.setdefault("", self.user_input_color) style_dict.setdefault("", self.user_input_color)
# Add the completion menu styles # Add the completion menu styles
style_dict.update({ style_dict.update(
"completion-menu": f"bg:{self.completion_menu_bg_color} {self.completion_menu_color}", {
"completion-menu.completion.current": ( "completion-menu": (
f"bg:{self.completion_menu_current_bg_color} {self.completion_menu_current_color}" 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) return Style.from_dict(style_dict)
else: else:
return None return None