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]
Minoro typing fix
Kilian Lieretbe320c5a896a
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex 0ae91c42..89301b5f 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -788,7 +788,7 @@ class SWEEnv(gym.Env):pids = [x for x in pids if x[1] != "ps" and x[0] not in self.parent_pids]return pids- def get_submission(self, output: str) -> str:+ def get_submission(self, output: str) -> str | None:"""Function for extracting diff patch submission at the end of an episode.