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]
Dev: Ignore linter warnings
Kilian Lieret14c0257f1cf5
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.pyindex b2b0573f..d720b07d 100644--- a/sweagent/agent/agents.py+++ b/sweagent/agent/agents.py@@ -898,9 +898,9 @@ class DefaultAgent(AbstractAgent):pf = (PatchFormatter(patch,- read_method=lambda path: self._env.read_file(- PurePosixPath("/") / self._env.repo.repo_name / path- ), # type: ignore[attr-defined]+ read_method=lambda path: self._env.read_file( # type: ignore[attr-defined]+ PurePosixPath("/") / self._env.repo.repo_name / path # type: ignore[attr-defined]+ ),)if patchelse None