cleanup \[ from prompt string which was generating improper escape warnings

This commit is contained in:
Paul Gauthier 2023-05-11 22:19:01 -07:00
parent 6686ea1005
commit c9ef516bdb

View file

@ -508,7 +508,7 @@ class Coder:
self.console.print(f"[bright_black]Suggested commit message:\n{commit_message}\n")
res = self.prompt_ask(
"[bright_black]Commit before the chat proceeds? \[y/n/commit message]", # noqa: W605 E501
Text("Commit before the chat proceeds? [y/n/commit message]", style="bright_black"),
default="y",
).strip()
self.last_asked_for_commit_time = self.get_last_modified()