Skip to content

Commit

Permalink
lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RajWorking committed Nov 18, 2024
1 parent 6cd591b commit 8aa3577
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openhands_aci/editor/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def delete(self, path: Path, lines_range: list[int] | None = None) -> CLIResult:
start_line, end_line = lines_range # inclusive

new_file_text_lines = (
file_text_lines[:start_line] + file_text_lines[end_line + 1:]
file_text_lines[:start_line] + file_text_lines[end_line + 1 :]
)
snippet_lines = (
file_text_lines[max(0, start_line - SNIPPET_CONTEXT_WINDOW) : start_line]
Expand All @@ -305,8 +305,8 @@ def delete(self, path: Path, lines_range: list[int] | None = None) -> CLIResult:
return CLIResult(output=success_message)

def move_code_block(
self, path: Path, from_range: list[int] | None, dst_path: Path, insert_line: int
) -> CLIResult:
self, path: Path, from_range: list[int] | None, dst_path: Path, insert_line: int
) -> CLIResult:
"""
Move a block of code from one file to another.
"""
Expand All @@ -320,7 +320,7 @@ def move_code_block(
code_block = '\n'.join(
file_content_lines[start_line:]
if end_line == -1
else file_content_lines[start_line: end_line + 1]
else file_content_lines[start_line : end_line + 1]
)
delete_result = self.delete(path, from_range)
insert_result = self.insert(dst_path, insert_line, code_block, True)
Expand Down

0 comments on commit 8aa3577

Please sign in to comment.