From 5181957858627579cc1ac59888e5cc7aab1a6704 Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Fri, 10 Jan 2025 01:59:43 +0200 Subject: [PATCH] chore(mypy): Fix type annotation (#751) --- src/pre_commit_terraform/terraform_docs_replace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pre_commit_terraform/terraform_docs_replace.py b/src/pre_commit_terraform/terraform_docs_replace.py index cc83a2a7d..444bbc588 100644 --- a/src/pre_commit_terraform/terraform_docs_replace.py +++ b/src/pre_commit_terraform/terraform_docs_replace.py @@ -49,7 +49,7 @@ def invoke_cli_app(parsed_cli_args: Namespace) -> ReturnCodeType: category=UserWarning, ) - dirs = [] + dirs: list[str] = [] for filename in cast_to(list[str], parsed_cli_args.filenames): if (os.path.realpath(filename) not in dirs and (filename.endswith(".tf") or filename.endswith(".tfvars"))):