Skip to content

Commit

Permalink
chore(mypy): Fix type annotation (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov authored Jan 9, 2025
1 parent 1c9823e commit 5181957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pre_commit_terraform/terraform_docs_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))):
Expand Down

0 comments on commit 5181957

Please sign in to comment.