mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
aider: Called superclass's __init__
method before setting the gpt_prompts
attribute in EditBlockCoder
.
# Context: USER: call super ASSISTANT: To call the superclass's `__init__` method in the `EditBlockCoder` class, you need to modify the `aider/coders/editblock.py` file. Here's the change: ```python aider/coders/editblock.py <<<<<<< ORIGINAL class EditBlockCoder(Coder): def __init__(self, *args, **kwargs): self.gpt_prompts = EditBlockPrompts() ======= class EditBlockCoder(Coder): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.gpt_prompts = EditBlockPrompts() >>>>>>> UPDATED ``` This change calls the superclass's `__init__` method before setting the `gpt_prompts` attribute.
This commit is contained in:
parent
741249bb6b
commit
bc38fcde65
1 changed files with 1 additions and 0 deletions
|
@ -4,4 +4,5 @@ from .base import Coder
|
|||
|
||||
class EditBlockCoder(Coder):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.gpt_prompts = EditBlockPrompts()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue