From 972b8cea0421b1fff25ca6561703fa36a47d34a1 Mon Sep 17 00:00:00 2001 From: Jonathan Dowland Date: Thu, 28 Nov 2024 12:54:23 +0000 Subject: [PATCH] Add type hints for _execute Signed-off-by: Jonathan Dowland --- steps/steps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/steps/steps.py b/steps/steps.py index 663572e..e44f58f 100644 --- a/steps/steps.py +++ b/steps/steps.py @@ -6,6 +6,7 @@ import select import socket import fcntl +from typing import Tuple from behave import then, given from container import ExecException @@ -15,7 +16,7 @@ TIMEOUT = int(os.getenv('BEHAVE_TIMEOUT', '30')) -def _execute(command, log_output=True): +def _execute(command, log_output=True) -> Tuple[bool, str]: """ Helper method to execute a shell command and redirect the logs to logger with proper log level.