Fix type annotation

Lists cannot be returned from this version
This commit is contained in:
Ryan Delaney 2023-03-07 10:18:52 -05:00
parent 00d5ad7ece
commit 022014298a

View File

@ -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", "")}"""