Skip to content

Commit

Permalink
Added return type hint to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tmpecho authored Apr 17, 2023
1 parent cd587bc commit 9c062b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogpt/commands/execute_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from autogpt.workspace import path_in_workspace, WORKSPACE_PATH


def execute_python_file(file: str):
def execute_python_file(file: str) -> str:
"""Execute a Python file in a Docker container and return the output
Args:
Expand Down Expand Up @@ -114,7 +114,7 @@ def execute_shell(command_line: str) -> str:
return output


def execute_shell_popen(command_line):
def execute_shell_popen(command_line) -> str:
"""Execute a shell command with Popen and returns an english description
of the event and the process id
Expand Down

0 comments on commit 9c062b4

Please sign in to comment.