Fix type annotation
Lists cannot be returned from this version
This commit is contained in:
parent
00d5ad7ece
commit
022014298a
|
|
@ -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", "")}"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue