mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
aider: Remove the unused import get_language
from aider/linter.py
.
# Aider chat conversation: USER: I ran this command: flake8 aider/linter.py And got this output: aider/linter.py:9:1: F401 'tree_sitter_languages.get_language' imported but unused ASSISTANT: Please add the file `aider/linter.py` to the chat so I can make the necessary changes. USER: I added these files to the chat: aider/linter.py ASSISTANT: To resolve the flake8 warning, we need to remove the unused import `get_language` from `aider/linter.py`. Here is the *SEARCH/REPLACE* block: aider/linter.py ```python <<<<<<< SEARCH from tree_sitter_languages import get_language, get_parser # noqa: E402 ======= from tree_sitter_languages import get_parser # noqa: E402 >>>>>>> REPLACE ```
This commit is contained in:
parent
a9fd02c74d
commit
778dbcabb0
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ from grep_ast import TreeContext, filename_to_lang
|
|||
|
||||
# tree_sitter is throwing a FutureWarning
|
||||
warnings.simplefilter("ignore", category=FutureWarning)
|
||||
from tree_sitter_languages import get_language, get_parser # noqa: E402
|
||||
from tree_sitter_languages import get_parser # noqa: E402
|
||||
|
||||
|
||||
def basic_lint(fname, code):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue