def shell_exec(*, args:list[str]|str, timeout: int = 150) -> tuple[CommandOutput, list[str]|None]:
"""Execute a shell command with subprocess.
Args:
args: Command and arguments to execute.
timeout: Maximum time in seconds to wait for the command to complete.
Returns:
CommandOutput: An object containing the returncode, stdout, and stderr.
Raises:
ShellExecError: If an error occurs during command execution.
"""
Theme used is Night Owl, randomly tried another one and it had the same issue.