From 022014298aa6205fe939653ee791f145a4495f52 Mon Sep 17 00:00:00 2001 From: Ryan Delaney Date: Tue, 7 Mar 2023 10:18:52 -0500 Subject: [PATCH] Fix type annotation Lists cannot be returned from this version --- thefuck/rules/terraform_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/terraform_help.py b/thefuck/rules/terraform_help.py index 4ed3c87..0489cda 100644 --- a/thefuck/rules/terraform_help.py +++ b/thefuck/rules/terraform_help.py @@ -23,7 +23,7 @@ def match(command) -> bool: ) -def get_new_command(command) -> str | list[str]: +def get_new_command(command) -> str: matches = re.search(REGEX, command.output) if matches: return f"""terraform {matches.groupdict().get("suggestion", "")}"""