From f542c65b58997b30b61ee1bc404c32a8539e271f Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 Aug 2024 18:45:57 -0400 Subject: [PATCH] feat: make `abs_read_only_fnames` an optional param in `AutoCompleter` class --- aider/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/io.py b/aider/io.py index 55ab52343..d3a37aaf4 100644 --- a/aider/io.py +++ b/aider/io.py @@ -23,12 +23,12 @@ from .utils import is_image_file class AutoCompleter(Completer): def __init__( - self, root, rel_fnames, addable_rel_fnames, commands, encoding, abs_read_only_fnames + self, root, rel_fnames, addable_rel_fnames, commands, encoding, abs_read_only_fnames=None ): self.addable_rel_fnames = addable_rel_fnames self.rel_fnames = rel_fnames self.encoding = encoding - self.abs_read_only_fnames = abs_read_only_fnames + self.abs_read_only_fnames = abs_read_only_fnames or [] fname_to_rel_fnames = defaultdict(list) for rel_fname in addable_rel_fnames: