From ac4c339904d89a8fdc9380087709569901af8da9 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 Aug 2024 18:39:35 -0400 Subject: [PATCH] style: Format AutoCompleter class constructor --- aider/io.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aider/io.py b/aider/io.py index df4c8bade..55ab52343 100644 --- a/aider/io.py +++ b/aider/io.py @@ -22,7 +22,9 @@ from .utils import is_image_file class AutoCompleter(Completer): - def __init__(self, root, rel_fnames, addable_rel_fnames, commands, encoding, abs_read_only_fnames): + def __init__( + self, root, rel_fnames, addable_rel_fnames, commands, encoding, abs_read_only_fnames + ): self.addable_rel_fnames = addable_rel_fnames self.rel_fnames = rel_fnames self.encoding = encoding @@ -48,7 +50,9 @@ class AutoCompleter(Completer): for rel_fname in rel_fnames: self.words.add(rel_fname) - all_fnames = [Path(root) / rel_fname for rel_fname in rel_fnames] + list(abs_read_only_fnames) + all_fnames = [Path(root) / rel_fname for rel_fname in rel_fnames] + list( + abs_read_only_fnames + ) for fname in all_fnames: try: