Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Fix: do not use tuple[...] for old python compatibility

Kilian Lieretec2a51bc3c8d
diff --git a/config/commands/_split_string.py b/config/commands/_split_string.py
index 900fa4e8..c6c00c07 100644
--- a/config/commands/_split_string.py
+++ b/config/commands/_split_string.py
@@ -38,7 +38,7 @@ class Flake8Error:
def _update_previous_errors(
- previous_errors: List[Flake8Error], replacement_window: tuple[int, int], replacement_n_lines: int
+ previous_errors: List[Flake8Error], replacement_window: Tuple[int, int], replacement_n_lines: int
) -> List[Flake8Error]:
"""Update the line numbers of the previous errors to what they would be after the edit window.
This is a helper function for `_filter_previous_errors`.