diff --git a/aider/io.py b/aider/io.py index 04faa5e10..91805fc0e 100644 --- a/aider/io.py +++ b/aider/io.py @@ -378,8 +378,20 @@ class InputOutput: if changed: dump(changed) # Check if any values contain ! - if any('!' in comment for comments in changed.values() if comments for comment in comments): - self.changed_files = ['\n'.join(comment for comments in changed.values() if comments for comment in comments)] + if any( + "!" in comment + for comments in changed.values() + if comments + for comment in comments + ): + self.changed_files = [ + "\n".join( + comment + for comments in changed.values() + if comments + for comment in comments + ) + ] else: self.changed_files = list(changed.keys()) self.interrupt_input()