mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
style: format nested list comprehension for better readability
This commit is contained in:
parent
14a62586cc
commit
ec00bb988c
1 changed files with 14 additions and 2 deletions
16
aider/io.py
16
aider/io.py
|
@ -378,8 +378,20 @@ class InputOutput:
|
||||||
if changed:
|
if changed:
|
||||||
dump(changed)
|
dump(changed)
|
||||||
# Check if any values contain !
|
# Check if any values contain !
|
||||||
if any('!' in comment for comments in changed.values() if comments for comment in comments):
|
if any(
|
||||||
self.changed_files = ['\n'.join(comment for comments in changed.values() if comments for comment in comments)]
|
"!" 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:
|
else:
|
||||||
self.changed_files = list(changed.keys())
|
self.changed_files = list(changed.keys())
|
||||||
self.interrupt_input()
|
self.interrupt_input()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue