Skip to content

Commit

Permalink
Add type hints for _execute
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Dowland <[email protected]>
  • Loading branch information
jmtd committed Nov 28, 2024
1 parent ef98123 commit 972b8ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import select
import socket
import fcntl
from typing import Tuple

from behave import then, given
from container import ExecException
Expand All @@ -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.
Expand Down

0 comments on commit 972b8ce

Please sign in to comment.