# Context:
USER: Coder has been changed to use the `create` class method. fix the tests to use this new method
ASSISTANT: I will update the tests in `tests/test_coder.py` to use the `create` class method.
```python
tests/test_coder.py
<<<<<<< ORIGINAL
coder = Coder(io=mock_io, openai_api_key="fake_key")
=======
coder = Coder.create(main_model=models.GPT4, io=mock_io, openai_api_key="fake_key")
>>>>>>> UPDATED
```
Please let me know if you need any further changes.
# 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.
# Context:
USER: how do i export those 2 symbols?
ASSISTANT: To export the two symbols `EditBlockPrompts` and `WholeFilePrompts` from the `aider/editors/__init__.py` file, you don't need to make any changes. They are already being imported and can be used by other modules that import from `aider.editors`.
For example, if you want to use these symbols in another file, you can simply import them like this:
```python
from aider.editors import EditBlockPrompts, WholeFilePrompts
```
^C KeyboardInterrupt
USER: can I use __all__ ?
ASSISTANT: Yes, you can use `__all__` to explicitly specify the symbols that should be imported when a client imports the module using a wildcard import (e.g., `from module import *`). To do this, add the `__all__` list to the `aider/editors/__init__.py` file and include the names of the symbols you want to export.
Here's how to modify the `aider/editors/__init__.py` file:
```python
aider/editors/__init__.py
<<<<<<< ORIGINAL
from .editblock import EditBlockPrompts
from .wholefile import WholeFilePrompts
=======
__all__ = ['EditBlockPrompts', 'WholeFilePrompts']
from .editblock import EditBlockPrompts
from .wholefile import WholeFilePrompts
>>>>>>> UPDATED
```
Now, when someone uses a wildcard import like `from aider.editors import *`, only the symbols listed in `__all__` will be imported.