From 9c062b44aaf061eebf41d33a778cf2485b1787d3 Mon Sep 17 00:00:00 2001 From: Tmpecho <82368148+Tmpecho@users.noreply.github.com> Date: Mon, 17 Apr 2023 20:46:47 +0200 Subject: [PATCH] Added return type hint to functions --- autogpt/commands/execute_code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogpt/commands/execute_code.py b/autogpt/commands/execute_code.py index 70b33a97..70522374 100644 --- a/autogpt/commands/execute_code.py +++ b/autogpt/commands/execute_code.py @@ -8,7 +8,7 @@ from docker.errors import ImageNotFound 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: @@ -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