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]
Remove type hint to avoid flake8 false positive
Kilian Liereted29dda9a40a
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex acffde4f..8c2fa6fc 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -675,7 +675,7 @@ class SWEEnv(gym.Env):raise RuntimeError("Failed to interrupt container")- def open_pr(self, action_config: "ActionsArguments", info, trajectory):+ def open_pr(self, action_config, info, trajectory):"""Create PR to repository"""logger.info("Opening PR")# todo: have better way of handling this