Skip to content

Commit

Permalink
Merge pull request #910 from similato87/python-3.8-support
Browse files Browse the repository at this point in the history
Update Type Hinting from tuple to Tuple
  • Loading branch information
ATheorell authored Dec 17, 2023
2 parents 39f7b2a + db29cbe commit 4a49502
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gpt_engineer/core/base_execution_env.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod
from subprocess import Popen
from typing import Optional
from typing import Optional, Tuple

from gpt_engineer.core.files_dict import FilesDict

Expand All @@ -20,7 +20,7 @@ class BaseExecutionEnv(ABC):
"""

@abstractmethod
def run(self, command: str, timeout: Optional[int] = None) -> tuple[str, str, int]:
def run(self, command: str, timeout: Optional[int] = None) -> Tuple[str, str, int]:
"""
Runs a command in the execution environment.
"""
Expand Down
4 changes: 2 additions & 2 deletions gpt_engineer/core/default/disk_execution_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import time

from pathlib import Path
from typing import Optional, Union
from typing import Optional, Tuple, Union

from gpt_engineer.core.base_execution_env import BaseExecutionEnv
from gpt_engineer.core.default.file_store import FileStore
Expand Down Expand Up @@ -41,7 +41,7 @@ def popen(self, command: str) -> subprocess.Popen:
)
return p

def run(self, command: str, timeout: Optional[int] = None) -> tuple[str, str, int]:
def run(self, command: str, timeout: Optional[int] = None) -> Tuple[str, str, int]:
start = time.time()
print("\n--- Start of run ---")
# while running, also print the stdout and stderr
Expand Down

0 comments on commit 4a49502

Please sign in to comment.