Skip to content

Commit

Permalink
address review comment, type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
ollmer committed May 13, 2024
1 parent ffba574 commit 3d28971
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sweagent/environment/swe_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,10 @@ def reset_container(self) -> None:
self.container_obj = None
self._reset_container()

def _init_container(self, cached_image=None) -> None:
def _init_container(self, cached_image: Optional[str] = None) -> None:
"""
Handles container initialization. Defines container name and creates it
Handles container initialization. Defines container name and creates it.
If cached_image is provided, it will use that image name instead of the default.
"""
image_name = self.image_name
if cached_image is not None:
Expand Down

0 comments on commit 3d28971

Please sign in to comment.